[arch-commits] Commit in influxdb/trunk (PKGBUILD)
Morten Linderud
foxboron at gemini.archlinux.org
Sat Jan 1 18:43:47 UTC 2022
Date: Saturday, January 1, 2022 @ 18:43:47
Author: foxboron
Revision: 1091909
upgpkg: influxdb 2.1.1-1
Modified:
influxdb/trunk/PKGBUILD
----------+
PKGBUILD | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-01 18:37:05 UTC (rev 1091908)
+++ PKGBUILD 2022-01-01 18:43:47 UTC (rev 1091909)
@@ -6,14 +6,15 @@
# Contributor: Ben Alex <ben.alex at acegi.com.au>
pkgname=influxdb
-pkgver=2.0.7
-_commit_sha=2a45f0c
+pkgver=2.1.1
+_commit_sha=657e183
pkgrel=1
pkgdesc='Scalable datastore for metrics, events, and real-time analytics'
arch=('x86_64')
url='https://github.com/InfluxData/influxdb'
license=('MIT')
-makedepends=('go' 'git' 'bzr' 'protobuf' 'yarn' 'cargo' 'clang' 'llvm')
+makedepends=('go' 'go-tools' 'git' 'bzr' 'protobuf' 'yarn' 'cargo' 'clang' 'llvm')
+options=('!lto')
backup=('etc/influxdb/influxdb.conf')
source=("git+https://github.com/influxdata/influxdb.git#tag=v${pkgver}"
"influxdb.service")
@@ -28,21 +29,17 @@
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
export LDFLAGS="-linkmode external"
- make -j1 VERSION=$pkgver COMMIT=$_commit_sha INFLUXDB_SHA=$_commit_sha
+ PATH="$(go env GOPATH)/bin:$PATH" make -j1 VERSION=$pkgver COMMIT=$_commit_sha INFLUXDB_SHA=$_commit_sha
}
check(){
cd "$pkgname"
- make test
+ PATH="$(go env GOPATH)/bin:$PATH" make test
}
package(){
cd "$pkgname"
- install -Dm644 ../influxdb.service "$pkgdir/usr/lib/systemd/system/influxdb.service"
-
- install -d "$pkgdir/usr/bin/"
- install -Dm755 bin/linux/influx "$pkgdir/usr/bin/"
- install -Dm755 bin/linux/influxd "$pkgdir/usr/bin/"
-
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/influxdb/LICENSE"
+ install -Dm644 ../influxdb.service -t "$pkgdir/usr/lib/systemd/system"
+ install -Dm755 bin/linux/influxd -t "$pkgdir/usr/bin"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/influxdb"
}
More information about the arch-commits
mailing list