summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDavid Birks2019-04-30 14:13:17 -0400
committerDavid Birks2019-04-30 14:13:17 -0400
commitacbaadc7c61fba9811ab25a55d42f5380f870dc7 (patch)
tree2974d837fb111af3ff056e4326de20056172a66a /PKGBUILD
parentc61e059559b83f59173eb00464507897ae30efb7 (diff)
downloadaur-acbaadc7c61fba9811ab25a55d42f5380f870dc7.tar.gz
Update to 0.8.0-beta2
Also change to building from source
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 20 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ba4ca5e3ba0..60a50ad15ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,31 @@
# Maintainer: David Birks <david@tellus.space>
pkgname=docker-app
-pkgver=0.6.0
-pkgrel=2
+pkgver=0.8.0_beta2
+pkgrel=1
pkgdesc="A utility to help make Compose files more reusable and sharable"
arch=(x86_64)
url="https://github.com/docker/app"
license=(Apache)
depends=('docker')
-optdepends=()
-source=(https://github.com/docker/app/releases/download/v$pkgver/$pkgname-linux.tar.gz)
-sha512sums=('75fe1d8c3df0a909c77a7985f05ea92876289a790fc781fcb535e97a463b5c9e0eb8c31c93c1508e98ae0296cd38a96e1f5a6ac52de45fd2e235423de44a0f2c')
+makedepends=('go')
+source=("https://github.com/docker/app/archive/v${pkgver//_/-}.tar.gz")
+sha512sums=('8987462f125e91355e02a34e8f82ec019975c7e7bb1fd37f52aab058dc81a7c27f781ab2c608e6739abd6caed27e08407739fc5acb346ed3fa4a5c9cf810d31b')
+
+prepare() {
+ mkdir -p gopath/src/github.com/docker
+ ln -rTsf app-${pkgver//_/-} gopath/src/github.com/docker/app
+}
+
+build() {
+ # LDFLAGS into the GOFLAGS env variable.
+ export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow"
+
+ export GOPATH="$srcdir"/gopath
+ cd gopath/src/github.com/docker/app
+ make bin/docker-app-standalone
+}
package() {
- cd $srcdir
- install -Dm755 "$pkgname-linux" "$pkgdir/usr/bin/$pkgname"
+ install -Dm 755 "$srcdir/gopath/src/github.com/docker/app/bin/$pkgname-standalone" "$pkgdir/usr/bin/$pkgname"
}