1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/postgresql-timescaledb/APKBUILD

62 lines
1.9 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: wener <wenermail@gmail.com>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: wener <wenermail@gmail.com>
pkgname=postgresql-timescaledb
pkgver=2.10.0
pkgrel=0
pkgdesc="PostgreSQL extension for timeseries data"
url="https://github.com/timescale/timescaledb"
arch="all"
license="Apache-2.0"
provides="timescaledb=$pkgver-r$pkgrel" # for backward compatibility
makedepends="
bash
cmake
openssl-dev>3
perl-ipc-run
perl-utils
postgresql-dev
samurai
"
install="$pkgname.post-install $pkgname.post-upgrade"
source="https://github.com/timescale/timescaledb/archive/$pkgver/postgresql-timescaledb-$pkgver.tar.gz
fix-build.patch
"
builddir="$srcdir/timescaledb-$pkgver"
options="!check" # FIXME: see comment on REGRESS_CHECKS=OFF below
# secfixes:
# 2.9.3-r0:
# - CVE-2023-25149
export USE_PGXS=1
build() {
# REGRESS_CHECKS=OFF - disable regress test
# regress need https://github.com/timescale/timescaledb/blob/master/test/pg_isolation_regress.sh
# which need to compile pg - https://github.com/timescale/timescaledb/issues/1655#issuecomment-578683986
# APACHE_ONLY - we cannot provide non-free software in Alpine repos;
# users can build TSL module themselves with aport non-free/postgresql-timescaledb-tsl.
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DREGRESS_CHECKS=OFF \
-DAPACHE_ONLY=ON
cmake --build build
}
check() {
cmake --build build --target test
}
package() {
depends="postgresql$(pg_config --major-version)"
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
6028146a421de91a356539d8027cfee8dc38dd03cf02fe04887ddaf134fa057c953cf6b6179a9160d797271943a8fe35ffe2f4d8959fe3be8e7bf527a3fe7d41 postgresql-timescaledb-2.10.0.tar.gz
fe542830c3aad330c6c1da6e83cc308d749787f7ef7bb23eec7e834f1264aa2ca93b9e272f34c92b42dbb5ca9ea93e311831dd5910d6ac8e9afbc92725439eaf fix-build.patch
"