aboutsummaryrefslogtreecommitdiffstats
path: root/testing/postgresql-timescaledb/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2021-03-17 20:27:40 +0100
committerJakub Jirutka <jakub@jirutka.cz>2021-03-17 21:20:45 +0100
commit973ffb05e6b0c75c381184172dd4da24035104e3 (patch)
tree6307fd86c3da87645778b45b23a1315f9ead7332 /testing/postgresql-timescaledb/APKBUILD
parentf6249493363bc26cb4a856c73b305bd5b4d176ca (diff)
downloadaports-973ffb05e6b0c75c381184172dd4da24035104e3.tar.gz
aports-973ffb05e6b0c75c381184172dd4da24035104e3.tar.bz2
aports-973ffb05e6b0c75c381184172dd4da24035104e3.tar.xz
testing/timescaledb: rename pkg to postgresql-timescaledb
This is a PostgreSQL extension; such packages should be named postgresql-<name>.
Diffstat (limited to 'testing/postgresql-timescaledb/APKBUILD')
-rw-r--r--testing/postgresql-timescaledb/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/postgresql-timescaledb/APKBUILD b/testing/postgresql-timescaledb/APKBUILD
new file mode 100644
index 0000000000..57cfd3a730
--- /dev/null
+++ b/testing/postgresql-timescaledb/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: wener <wenermail@gmail.com>
+# Maintainer: wener <wenermail@gmail.com>
+pkgname=postgresql-timescaledb
+_projname=timescaledb
+pkgver=2.1.0
+pkgrel=0
+pkgdesc="An open-source database designed to make SQL scalable 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"
+source="https://github.com/timescale/timescaledb/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_projname-$pkgver"
+
+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
+ BUILD_FORCE_REMOVE=true ./bootstrap -DREGRESS_CHECKS=OFF
+ make -C build USE-PGXS=1
+}
+
+check() {
+ make -C build test
+}
+
+package() {
+ make -C build USE_PGXS=1 DESTDIR="$pkgdir" install
+}
+
+sha512sums="53fddb9fe4c4ab51ebc020e90eea5b032b41259d3bd45e8a03a86451acd7f8864b5a6ecba1b82b7c78e230f62cfddf1da75ff27e6629ad5fe8178839ac411ce4 postgresql-timescaledb-2.1.0.tar.gz"