summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Müller2019-12-23 10:09:24 +0100
committerThorsten Müller2019-12-23 10:09:24 +0100
commit3b677035809b29d61c8ec3447b0b3cd696287456 (patch)
tree55a981aa219d8dc089e2c2ebd249268108410f8a
parentbef110d1b100838d203a3bf1a13cb2faca39b7b2 (diff)
downloadaur-3b677035809b29d61c8ec3447b0b3cd696287456.tar.gz
multi architecture
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 40b4809be2c..a624fd793f9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,12 @@
pkgbase = sensu-cli
pkgdesc = Sensu Go cli
pkgver = 5.16.1
- pkgrel = 1
+ pkgrel = 2
url = https://sensu.io
arch = x86_64
arch = armv7h
license = MIT
- source = sensu-cli-5.16.1_armv7h.tar.gz::https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/5.16.1/sensu-go_5.16.1_linux_armv7.tar.gz
source = sensu-cli-5.16.1_x86_64.tar.gz::https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/5.16.1/sensu-go_5.16.1_linux_amd64.tar.gz
- sha256sums = 604c43933a4675ad3382b0480db647cd6dc370f10ccce00f7cd34fc9fe43a547
sha256sums = 1e01366fefc7f0248908e8fa8489609e80c600c4f7535c874ac453b044f372d1
pkgname = sensu-cli
diff --git a/PKGBUILD b/PKGBUILD
index 2069fd0e08c..7a79a2d1d97 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,23 @@
# Maintainer: thorko contact@thorko.de
pkgname=sensu-cli
pkgver=5.16.1
-pkgrel=1
+pkgrel=2
pkgdesc="Sensu Go cli"
arch=('x86_64' 'armv7h')
url='https://sensu.io'
license=('MIT')
-#makedepends=('')
-source=("${pkgname}-${pkgver}_armv7h.tar.gz::https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/${pkgver}/sensu-go_${pkgver}_linux_armv7.tar.gz"
- "${pkgname}-${pkgver}_x86_64.tar.gz::https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/${pkgver}/sensu-go_${pkgver}_linux_amd64.tar.gz"
- )
-sha256sums=(
+if [ "$CARCH" = "armv7h" ]; then
+ source=("${pkgname}-${pkgver}_armv7h.tar.gz::https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/${pkgver}/sensu-go_${pkgver}_linux_armv7.tar.gz")
+ sha256sums=(
'604c43933a4675ad3382b0480db647cd6dc370f10ccce00f7cd34fc9fe43a547'
+ )
+fi
+if [ "$CARCH" = "x86_64" ]; then
+ source=("${pkgname}-${pkgver}_x86_64.tar.gz::https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/${pkgver}/sensu-go_${pkgver}_linux_amd64.tar.gz")
+ sha256sums=(
'1e01366fefc7f0248908e8fa8489609e80c600c4f7535c874ac453b044f372d1'
- )
-
+ )
+fi
build() {
tar xzvf ${pkgname}-${pkgver}_$CARCH.tar.gz