# Contributor: Michael Mason # Maintainer: Michael Mason pkgname=pllua pkgver=1.1.0 pkgrel=0 pkgdesc="Procedural language for PostgreSQL using Lua" url="https://github.com/pllua/pllua" arch="all !s390x" # s390x: luajit is not avail license="GPL" depends="postgresql" makedepends="postgresql-dev luajit-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/pllua/$pkgname/archive/v$pkgver.tar.gz fix-on-32bit.patch fix-postgres10.patch" builddir="$srcdir/$pkgname-$pkgver" options="!check" # tests require running PostgreSQL build() { cd "$builddir" make LUA_INCDIR=$(pkgconf --variable=includedir luajit) \ LUALIB=$(pkgconf --libs luajit) \ USE_PGXS=1 } package() { cd "$builddir" make USE_PGXS=1 DESTDIR="$pkgdir" install } sha512sums="bd882a5782d72b24aaca81f6678eefae191bbf53b7e8152f3d83b1b89e49d6a1c9a17be5edbc7673ff6b4f48426cf3b4ee5c6b8349555ed55078fb1e7cc6829d pllua-1.1.0.tar.gz cf415243d0e99af2976f03261b80272ea7eb297711dc0a3386817d0b48f77aeb26b70741c594b7b8a089eb2b550e226bfd45e5077949be8e9fa0a36395ce3de1 fix-on-32bit.patch 2ea14f3415f3cb3ba425cb850feb38718c29e48b3c2b6cb98297e48ea5cec29f65356df4b3ee13fe3513d99d0014782d9591d8a044a667de6a8e9d3bd43ff460 fix-postgres10.patch"