blob: 22a5309a083dead86928eed4ff59eeffd78cb600 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# 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.4.2
pkgrel=0
pkgdesc="PostgreSQL extension for time‑series data"
url="https://github.com/timescale/timescaledb"
arch="" # not compatible with pgsql 14 https://gitlab.alpinelinux.org/alpine/aports/-/issues/13125
license="Apache-2.0"
provides="timescaledb=$pkgver-r$pkgrel" # for backward compatibility
makedepends="postgresql-dev cmake bash perl-ipc-run perl-utils"
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 . \
-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
make -C build
}
check() {
make -C build test
}
package() {
make -C build install DESTDIR="$pkgdir"
}
sha512sums="
56a0ff981e7374e2845d949c5bde2f157063b36cb7f9c54c6627c35ae8a8a5e5a3637fb66c6fd5c61a25b86f80a204ab7a6071b9705646bfee6a9b252c805b2d postgresql-timescaledb-2.4.2.tar.gz
1416d7314fb6bc9c115587c86dabb2aff01a4c7e6e9ae842e5021276c21c61c9db4e73e6e0b1732af1b15419218248228447822b3f08e38729a08aaf8d99b521 dont-use-git-describe.patch
fe542830c3aad330c6c1da6e83cc308d749787f7ef7bb23eec7e834f1264aa2ca93b9e272f34c92b42dbb5ca9ea93e311831dd5910d6ac8e9afbc92725439eaf fix-build.patch
"
|