mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
60 lines
2.3 KiB
Plaintext
60 lines
2.3 KiB
Plaintext
# Contributor: wener <wenermail@gmail.com>
|
||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||
# Maintainer: wener <wenermail@gmail.com>
|
||
#
|
||
# Keep in sync with non-free/postgresql-timescaledb-tsl.
|
||
#
|
||
pkgname=postgresql-timescaledb
|
||
_projname=timescaledb
|
||
pkgver=2.6.1
|
||
pkgrel=1
|
||
pkgdesc="PostgreSQL extension for time‑series data"
|
||
url="https://github.com/timescale/timescaledb"
|
||
arch="all"
|
||
license="Apache-2.0"
|
||
provides="timescaledb=$pkgver-r$pkgrel" # for backward compatibility
|
||
makedepends="postgresql-dev cmake bash perl-ipc-run perl-utils samurai"
|
||
install="$pkgname.post-install $pkgname.post-upgrade"
|
||
source="https://github.com/timescale/timescaledb/archive/$pkgver/postgresql-timescaledb-$pkgver.tar.gz
|
||
dont-use-git-describe.patch
|
||
fix-build.patch
|
||
"
|
||
builddir="$srcdir/$_projname-$pkgver"
|
||
options="!check" # FIXME: see comment on REGRESS_CHECKS=OFF below
|
||
|
||
export USE_PGXS=1
|
||
|
||
build() {
|
||
# CFLAGS - performance is more important than binary size in this case
|
||
# 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
|
||
# CMAKE_BUILD_TYPE - note that 'None' doesn't work here!
|
||
# 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_C_FLAGS_RELEASE="${CFLAGS/-Os/-O2} -DNDEBUG" \
|
||
-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="
|
||
edcc84c37af9670c1a7bf527f5c430405e9b04e9a35e676d04e7ac70b20184032f992d05545a180b50ac2346b076aac4fc98348c355006345394910978864a8f postgresql-timescaledb-2.6.1.tar.gz
|
||
1416d7314fb6bc9c115587c86dabb2aff01a4c7e6e9ae842e5021276c21c61c9db4e73e6e0b1732af1b15419218248228447822b3f08e38729a08aaf8d99b521 dont-use-git-describe.patch
|
||
fe542830c3aad330c6c1da6e83cc308d749787f7ef7bb23eec7e834f1264aa2ca93b9e272f34c92b42dbb5ca9ea93e311831dd5910d6ac8e9afbc92725439eaf fix-build.patch
|
||
"
|