aboutsummaryrefslogtreecommitdiffstats
path: root/community/alertmanager
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-01-09 14:53:48 -0500
committerLeo <thinkabit.ukim@gmail.com>2020-01-10 09:54:05 +0100
commitdc83ffa9928169e1354b43bf79eddf57c394a440 (patch)
treeeaa0ac65248f6ec5a98a4bdcbdbbd34b0620b4fd /community/alertmanager
parentaf5b1a89ce6f5afc071ab217373488aae7c651d0 (diff)
downloadaports-dc83ffa9928169e1354b43bf79eddf57c394a440.tar.bz2
aports-dc83ffa9928169e1354b43bf79eddf57c394a440.tar.xz
community/alertmanager: fix LDFLAGS issues
This should(?) fix the build on aarch64.
Diffstat (limited to 'community/alertmanager')
-rw-r--r--community/alertmanager/APKBUILD31
1 files changed, 14 insertions, 17 deletions
diff --git a/community/alertmanager/APKBUILD b/community/alertmanager/APKBUILD
index e61bbb2526..56a02011c6 100644
--- a/community/alertmanager/APKBUILD
+++ b/community/alertmanager/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=alertmanager
pkgver=0.20.0
-pkgrel=0
+pkgrel=1
pkgdesc="Prometheus Alertmanager"
url="https://github.com/prometheus/alertmanager"
arch="all"
@@ -18,22 +18,19 @@ builddir="$srcdir/$pkgname-$pkgver"
options="!check" # timing-sensitive upstream tests
build() {
- ldflags="-extldflags $LDFLAGS \
- -X github.com/prometheus/common/version.Version=$pkgver \
- -X github.com/prometheus/common/version.Revision=$pkgrel \
- -X github.com/prometheus/common/version.Branch=Alpine \
- -X github.com/prometheus/common/version.BuildUser=Alpine \
- -X github.com/prometheus/common/version.BuildDate=2020-01-08"
- go build \
- -trimpath \
- -mod=vendor \
- -ldflags "$ldflags" \
- ./cmd/alertmanager
- go build \
- -trimpath \
- -mod=vendor \
- -ldflags "$ldflags" \
- ./cmd/amtool
+ for cmd in amtool alertmanager
+ do
+ go build \
+ -trimpath \
+ -mod=vendor \
+ -ldflags "-extldflags \"$LDFLAGS\" \
+ -X github.com/prometheus/common/version.Version=$pkgver \
+ -X github.com/prometheus/common/version.Revision=$pkgrel \
+ -X github.com/prometheus/common/version.Branch=Alpine \
+ -X github.com/prometheus/common/version.BuildUser=Alpine \
+ -X github.com/prometheus/common/version.BuildDate=2020-01-08" \
+ ./cmd/$cmd
+ done
}
check() {