aports/community/postgresql-citus/APKBUILD
2025-06-03 19:20:20 +00:00

59 lines
1.3 KiB
Text

# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=postgresql-citus
_projname=citus
pkgver=13.1.0
pkgrel=0
pkgdesc="Scalable PostgreSQL for multi-tenant and real-time analytics workloads"
url="https://github.com/citusdata/citus"
arch="all"
license="AGPL-3.0-only"
makedepends="
autoconf
icu-dev
libxml2-dev
lz4-dev
postgresql-dev
zstd-dev
"
install="$pkgname.post-install"
subpackages="
$pkgname-bitcode
$pkgname-dev
"
source="https://github.com/citusdata/citus/archive/v$pkgver/$_projname-$pkgver.tar.gz"
builddir="$srcdir/$_projname-$pkgver"
options="!check" # tests requires running postgresql cluster
prepare() {
default_prepare
autoreconf -fi
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--without-libcurl
make
}
package() {
depends="postgresql$(pg_config --major-version)"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
bitcode() {
pkgdesc="$pkgdesc (bitcode for JIT)"
depends="$pkgname=$pkgver-r$pkgrel"
install_if="postgresql$(pg_config --major-version)-jit $pkgname=$pkgver-r$pkgrel"
amove usr/lib/postgresql*/bitcode
}
sha512sums="
2bdde6ee0d4307bb05a0f8c9a9be685ffff3ef362dd536b28c2dc3f2ea477b69620ae440d5a15f670a242842734ce17ee98bfe26174447add2111ce291f8de7c citus-13.1.0.tar.gz
"