1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 09:45:12 +03:00
aports/community/postgresql-pllua/APKBUILD
Jakub Jirutka 9424973b1f community/*: rebuild against postgresql15
All aports that makedepend on postgresql-dev, except
postgresql-timescaledb that still doesn't support PostgreSQL 15 -
I will deal with it later.
2022-11-22 00:02:58 +01:00

47 lines
1.3 KiB
Text

# Contributor: Michael Mason <ms13sp@gmail.com>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=postgresql-pllua
pkgver=2.0.10
_pkgver="REL_${pkgver//./_}"
pkgrel=3
pkgdesc="Procedural language for PostgreSQL using Lua"
url="https://github.com/RhodiumToad/pllua-ng"
# riscv64: limited by luajit
# s390x: fails to build
arch="all !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="
35f0d53e364d61b5d28af4e722aad454c323b549e86c3c05e8c5e7858f0903b22416151cb1292649303cc11ae16519c7a306a86a3cab2041c59f424803536899 pllua-ng-REL_2_0_10.tar.gz
"