[arch-commits] Commit in timescaledb-tune/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Fri Apr 29 02:07:51 UTC 2022


    Date: Friday, April 29, 2022 @ 02:07:51
  Author: grawlinson
Revision: 1191752

upgpkg: timescaledb-tune; go 1.18 rebuild

Modified:
  timescaledb-tune/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-29 02:07:36 UTC (rev 1191751)
+++ PKGBUILD	2022-04-29 02:07:51 UTC (rev 1191752)
@@ -2,19 +2,26 @@
 
 pkgname=timescaledb-tune
 pkgver=0.12.0
-pkgrel=1
-pkgdesc="A tool for tuning TimescaleDB for better performance"
+pkgrel=2
+pkgdesc='A tool for tuning TimescaleDB for better performance'
 arch=('x86_64')
-url="https://github.com/timescale/timescaledb-tune"
+url='https://github.com/timescale/timescaledb-tune'
 license=('Apache')
 depends=('glibc' 'postgresql')
-makedepends=('go')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('27bd3b48713643361754a549595d550d1b6aa301ca8e2033026a7b8503631c5e2781ddbdc7819b5ca8f6a7923b8e284ca81ed3d49845a89fd97b67f39411ba03')
-b2sums=('2ecc4d7f9b779b7dfecc3176fba0d819e7ae1117c443577f1f7458a6bfc9f227628cd2b99d2bec5530ca7b920b2c3707bcdc0b9ccb6edc770043522393b83287')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='f46f6580532c6c567f130ec8d008bf8f582c3cb5'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
 
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
 prepare() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
 
   # create directory for build output
   mkdir build
@@ -24,7 +31,7 @@
 }
 
 build() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
 
   # set Go flags
   export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -42,5 +49,5 @@
 }
 
 package() {
-  install -Dm755 -t "$pkgdir/usr/bin" "$pkgname-$pkgver/build/$pkgname"
+  install -Dm755 -t "$pkgdir/usr/bin" "$pkgname/build/$pkgname"
 }



More information about the arch-commits mailing list