diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -2,22 +2,21 @@ pkgname=openfaas-cli pkgdesc="OpenFaaS CLI" -pkgver=0.4.30 +pkgver=0.6.8 pkgrel=1 -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'arm64') url="https://github.com/openfaas/faas-cli" license=('mit') -makedepends=('go') +makedepends=('go' 'godep') source=("https://github.com/openfaas/faas-cli/archive/$pkgver.tar.gz") -sha256sums=('10a844c8f92fdcf843107170a3d1e101d89afd1bb25c05d898748f1e97239271') +sha256sums=('c9bab5c1ed2bab75339745439f30e40362fe1b2d3cf05518b569b5683c66ac68') build() { cd "$srcdir/faas-cli-$pkgver" - VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') - GIT_COMMIT=$(git rev-list -1 HEAD) - CGO_ENABLED=0 GOOS=linux go build --ldflags "-s -w -X github.com/openfaas/faas-cli/commands.GitCommit=${GIT_COMMIT} -X github.com/openfaas/faas-cli/commands.Version=${VERSION}" -a -installsuffix cgo -o faas-cli . + dep ensure + CGO_ENABLED=0 GOOS=linux go build --ldflags "-s -w -X github.com/openfaas/faas-cli/version.Version=$pkgver" -a -installsuffix cgo -o faas-cli } package() { |