# Contributor: Michael Mason # Contributor: Jakub Jirutka # Maintainer: Michael Mason pkgname=postgresql-pllua pkgver=2.0.11 _pkgver="REL_${pkgver//./_}" pkgrel=0 pkgdesc="Procedural language for PostgreSQL using Lua" url="https://github.com/RhodiumToad/pllua-ng" # ppc64le, riscv64: limited by luajit # s390x: fails to build arch="all !ppc64le !riscv64 !s390x" license="MIT" makedepends="postgresql-dev postgresql luajit-dev" options="!check" # tests require running PostgreSQL provides="pllua=$pkgver-r$pkgrel" # for backward compatibility replaces="pllua" # for backward compatibility subpackages="$pkgname-dev" source="https://github.com/RhodiumToad/pllua-ng/archive/$_pkgver/pllua-ng-$_pkgver.tar.gz" builddir="$srcdir/pllua-ng-$_pkgver" case "$CARCH" in s390x) makedepends="$makedepends llvm clang" ;; esac build() { _make } package() { depends="postgresql$(pg_config --major-version)" _make DESTDIR="$pkgdir" install } _make() { make \ LUAJIT=luajit \ LUA_INCDIR="$(pkgconf --variable=includedir luajit)" \ LUALIB="$(pkgconf --libs luajit)" \ USE_PGXS=1 \ "$@" } sha512sums=" 188c1badef333ec4341fa05d42d32b75ca2625d7f38325a3f64cac9d39587c4b029edb718411af4e00ce2a8b6ae85ac4a5081763a6fab05f8acfb9edc8a11a2e pllua-ng-REL_2_0_11.tar.gz "