[arch-commits] Commit in timescaledb-tune/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Fri Apr 29 02:08:24 UTC 2022
Date: Friday, April 29, 2022 @ 02:08:24
Author: grawlinson
Revision: 1191753
archrelease: copy trunk to community-x86_64
Added:
timescaledb-tune/repos/community-x86_64/PKGBUILD
(from rev 1191752, timescaledb-tune/trunk/PKGBUILD)
Deleted:
timescaledb-tune/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 99 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 53 insertions(+), 46 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-29 02:07:51 UTC (rev 1191752)
+++ PKGBUILD 2022-04-29 02:08:24 UTC (rev 1191753)
@@ -1,46 +0,0 @@
-# Maintainer: George Rawlinson <george at rawlinson.net.nz>
-
-pkgname=timescaledb-tune
-pkgver=0.12.0
-pkgrel=1
-pkgdesc="A tool for tuning TimescaleDB for better performance"
-arch=('x86_64')
-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')
-
-prepare() {
- cd "$pkgname-$pkgver"
-
- # create directory for build output
- mkdir build
-
- # download dependencies
- go mod download
-}
-
-build() {
- cd "$pkgname-$pkgver"
-
- # set Go flags
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
-
- go build -v \
- -buildmode=pie \
- -trimpath \
- -mod=readonly \
- -modcacherw \
- -ldflags "-linkmode external -extldflags ${LDFLAGS}" \
- -o build \
- ./cmd/...
-}
-
-package() {
- install -Dm755 -t "$pkgdir/usr/bin" "$pkgname-$pkgver/build/$pkgname"
-}
Copied: timescaledb-tune/repos/community-x86_64/PKGBUILD (from rev 1191752, timescaledb-tune/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-29 02:08:24 UTC (rev 1191753)
@@ -0,0 +1,53 @@
+# Maintainer: George Rawlinson <george at rawlinson.net.nz>
+
+pkgname=timescaledb-tune
+pkgver=0.12.0
+pkgrel=2
+pkgdesc='A tool for tuning TimescaleDB for better performance'
+arch=('x86_64')
+url='https://github.com/timescale/timescaledb-tune'
+license=('Apache')
+depends=('glibc' 'postgresql')
+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"
+
+ # create directory for build output
+ mkdir build
+
+ # download dependencies
+ go mod download
+}
+
+build() {
+ cd "$pkgname"
+
+ # set Go flags
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+
+ go build -v \
+ -buildmode=pie \
+ -trimpath \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags ${LDFLAGS}" \
+ -o build \
+ ./cmd/...
+}
+
+package() {
+ install -Dm755 -t "$pkgdir/usr/bin" "$pkgname/build/$pkgname"
+}
More information about the arch-commits
mailing list