[arch-commits] Commit in timescaledb-tune/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Fri Oct 15 06:54:45 UTC 2021
Date: Friday, October 15, 2021 @ 06:54:44
Author: grawlinson
Revision: 1030237
archrelease: copy trunk to community-x86_64
Added:
timescaledb-tune/repos/community-x86_64/PKGBUILD
(from rev 1030236, timescaledb-tune/trunk/PKGBUILD)
Deleted:
timescaledb-tune/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 95 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 46 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-15 06:54:04 UTC (rev 1030236)
+++ PKGBUILD 2021-10-15 06:54:44 UTC (rev 1030237)
@@ -1,49 +0,0 @@
-# Maintainer: George Rawlinson <george at rawlinson.net.nz>
-
-pkgname=timescaledb-tune
-pkgver=0.11.3
-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=('142272f1447ad6f0123d9e90cbbe9bb59387f3a4609e756e4d01440765f282bde3bf63ba6374706e7ab9f7c0af9e26995e6128aa537e61547bc0e12e037ded49')
-b2sums=('aa44f185ddcc2a581639115da5a2db25dd04f9a084dd0103c12e18b3f68caa06377b511ccfd9b4550ef5dda70a5cfc2d4eaa0d1f990f97e8d34f5772a6720440')
-
-prepare() {
- cd "$pkgname-$pkgver"
-
- # create directory for build output
- mkdir build
-
- # download dependencies
- go mod vendor
-
- # fix version string
- sed -i "s/^\tVersion =.*$/\tVersion = \"$pkgver\"/" pkg/tstune/tuner.go
-}
-
-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=vendor \
- -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 1030236, timescaledb-tune/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-10-15 06:54:44 UTC (rev 1030237)
@@ -0,0 +1,46 @@
+# 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"
+}
More information about the arch-commits
mailing list