[arch-commits] Commit in (5 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Mar 19 05:51:42 UTC 2021


    Date: Friday, March 19, 2021 @ 05:51:42
  Author: svenstaro
Revision: 894537

Move timescaledb from AUR

Added:
  timescaledb/
  timescaledb/repos/
  timescaledb/trunk/
  timescaledb/trunk/PKGBUILD
  timescaledb/trunk/timescaledb.install

---------------------+
 PKGBUILD            |   26 ++++++++++++++++++++++++++
 timescaledb.install |   15 +++++++++++++++
 2 files changed, 41 insertions(+)

Added: timescaledb/trunk/PKGBUILD
===================================================================
--- timescaledb/trunk/PKGBUILD	                        (rev 0)
+++ timescaledb/trunk/PKGBUILD	2021-03-19 05:51:42 UTC (rev 894537)
@@ -0,0 +1,26 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Felix Fung <fylixeoi at gmail.com>
+
+pkgname=timescaledb
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="An open-source time-series database optimized for fast ingest and complex queries."
+arch=('x86_64')
+url="https://www.timescale.com/"
+license=('Apache')
+depends=('postgresql' 'postgresql-libs')
+makedepends=('gcc' 'cmake')
+install=timescaledb.install
+source=("https://github.com/timescale/timescaledb/releases/download/${pkgver}/timescaledb-${pkgver}.tar.lzma")
+sha512sums=()
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    ./bootstrap -DWARNINGS_AS_ERRORS=OFF -DREGRESS_CHECKS=OFF
+    cd build && make
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}/build"
+    make DESTDIR="$pkgdir/" install
+}

Added: timescaledb/trunk/timescaledb.install
===================================================================
--- timescaledb/trunk/timescaledb.install	                        (rev 0)
+++ timescaledb/trunk/timescaledb.install	2021-03-19 05:51:42 UTC (rev 894537)
@@ -0,0 +1,15 @@
+post_install() {
+    echo "To use TimescaleDB as PostgreSQL extension,"
+	echo "put in /var/lib/postgres/data/postgresql.conf:"
+	echo "'shared_preload_libraries = "timescaledb"'"
+    echo "If multiple libraries are required, separate them with comma."
+    echo "Then restart postgresql:"
+    echo "$ systemctl restart postgresql"
+}
+
+post_remove() {
+    echo "Remove 'timescaledb' from 'shared_preload_libraries'"
+    echo "In /var/lib/postgres/data/postgresql.conf"
+    echo "Then restart postgresql:"
+    echo "$ systemctl restart postgresql"
+}



More information about the arch-commits mailing list