diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 20 insertions, 18 deletions
@@ -1,6 +1,6 @@ pkgbase = awless pkgdesc = A command line interface for Amazon Web Services (AWS) - pkgver = 0.1.7 + pkgver = 0.1.9 pkgrel = 1 url = https://github.com/wallix/awless arch = i686 @@ -8,8 +8,8 @@ pkgbase = awless license = Apache makedepends = go depends = glibc - source = https://github.com/wallix/awless/archive/v0.1.7.tar.gz - sha256sums = 583e35c7b93788a37f1b193af9beed1ba351c23ecd15f42318831f2106cd0684 + source = awless-0.1.9.tar.gz::https://github.com/wallix/awless/archive/v0.1.9.tar.gz + sha256sums = eba348663d4ab4695a474ec50633fb784bcbf547c750705870eafa195585d74b pkgname = awless @@ -1,33 +1,35 @@ +# Maintainer: Dmitri Goutnik <dg@syrec.org> # Contributor: Tom Tobin <archlinux@tomxtobin.com> pkgname=awless -pkgver=0.1.7 +pkgver=0.1.9 pkgrel=1 pkgdesc="A command line interface for Amazon Web Services (AWS)" arch=('i686' 'x86_64') -_vendor="github.com/wallix/${pkgname}" -url="https://${_vendor}" +url="https://github.com/wallix/${pkgname}" license=('Apache') depends=('glibc') makedepends=('go') -source=("https://${_vendor}/archive/v${pkgver}.tar.gz") -sha256sums=('583e35c7b93788a37f1b193af9beed1ba351c23ecd15f42318831f2106cd0684') - -_vendorpath="gopath/src/$_vendor" +source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('eba348663d4ab4695a474ec50633fb784bcbf547c750705870eafa195585d74b') prepare() { - mkdir -p $_vendorpath - mv -T $pkgname-$pkgver $_vendorpath + mkdir -p "${srcdir}/src/github.com/wallix/" + ln -sf "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/src/github.com/wallix/${pkgname}" } build() { - export GOPATH="$srcdir/gopath" - cd $_vendorpath - go build -o bin/$pkgname + cd "${srcdir}/src/github.com/wallix/${pkgname}" + env GOPATH="${srcdir}" go build -o ${pkgname} } +# check() { +# cd "${srcdir}/src/github.com/wallix/${pkgname}" +# env GOPATH="${srcdir}" go test ./... +# } + package() { - cd $_vendorpath - install -Dm755 bin/$pkgname $pkgdir/usr/bin/$pkgname - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "${srcdir}/src/github.com/wallix/${pkgname}" + install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |