summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Kral2017-08-07 15:43:16 +0200
committerTomas Kral2017-08-07 15:43:58 +0200
commitb2e3af10d1bc6be41db060f9aaf137e44da1a676 (patch)
treeaf6dd674b4e0ca57b10fa529619d9aafdcdf82ba
parentb5b48044824b21789701f99af5b28bb34db6309e (diff)
downloadaur-b2e3af10d1bc6be41db060f9aaf137e44da1a676.tar.gz
v1.0.0-2 fix package - not extracting file from archive
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6a81460c004..bec4721136f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,7 +5,7 @@ pkgbase = kompose-bin
url = http://kompose.io/
arch = x86_64
license = Apache
- source_x86_64 = kompose-1.0.0::https://github.com/kubernetes-incubator/kompose/releases/download/v1.0.0/kompose-linux-amd64.tar.gz
+ source_x86_64 = kompose-1.0.0.tar.gz::https://github.com/kubernetes-incubator/kompose/releases/download/v1.0.0/kompose-linux-amd64.tar.gz
md5sums_x86_64 = 9e7aa088318c54b81d25bae5640fa1af
pkgname = kompose-bin
diff --git a/PKGBUILD b/PKGBUILD
index 47a1d7701d7..33d2cebc519 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,17 +3,18 @@
pkgname=kompose-bin
_srcname=kompose
pkgver=1.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="Takes a Docker Compose file and translates it into Kubernetes resources"
url="http://kompose.io/"
license=('Apache')
arch=('x86_64')
-[ "$CARCH" = 'x86_64' ] && _arch='linux-amd64'
-source_x86_64=("$_srcname-$pkgver::https://github.com/kubernetes-incubator/kompose/releases/download/v$pkgver/kompose-linux-amd64.tar.gz")
+source_x86_64=("$_srcname-$pkgver.tar.gz::https://github.com/kubernetes-incubator/kompose/releases/download/v$pkgver/kompose-linux-amd64.tar.gz")
md5sums_x86_64=('9e7aa088318c54b81d25bae5640fa1af')
package() {
- install -Dm755 "$srcdir/$_srcname-$pkgver" "$pkgdir/usr/bin/kompose"
+ cd ${srcdir}
+ tar -xzf $_srcname-$pkgver.tar.gz
+ install -Dm755 "$srcdir/kompose-linux-amd64" "$pkgdir/usr/bin/kompose"
}