diff options
author | Dmitri Goutnik | 2018-01-27 15:15:57 -0500 |
---|---|---|
committer | Dmitri Goutnik | 2018-01-27 15:15:57 -0500 |
commit | 10dee6193316f1ab5a6f9516e5f8bc8fa6fb26c2 (patch) | |
tree | c25ccef28d29af7b513fc798983bfa64a6d6faf5 | |
parent | a295dc6ebd9cd69912f4b5bd2aefd69aeeeefede (diff) | |
download | aur-10dee6193316f1ab5a6f9516e5f8bc8fa6fb26c2.tar.gz |
Styling tweaks
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -6,30 +6,30 @@ pkgver=0.1.9 pkgrel=1 pkgdesc="A command line interface for Amazon Web Services (AWS)" arch=('i686' 'x86_64') -url="https://github.com/wallix/${pkgname}" +url="https://github.com/wallix/awless" license=('Apache') depends=('glibc') makedepends=('go') -source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz") +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=('eba348663d4ab4695a474ec50633fb784bcbf547c750705870eafa195585d74b') prepare() { - mkdir -p "${srcdir}/src/github.com/wallix/" - ln -sf "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/src/github.com/wallix/${pkgname}" + mkdir -p src/github.com/wallix + mv ${pkgname}-${pkgver} src/github.com/wallix/awless } build() { - cd "${srcdir}/src/github.com/wallix/${pkgname}" - env GOPATH="${srcdir}" go build -o ${pkgname} + cd src/github.com/wallix/awless + env GOPATH="${srcdir}" go build } # check() { -# cd "${srcdir}/src/github.com/wallix/${pkgname}" +# cd src/github.com/wallix/awless # env GOPATH="${srcdir}" go test ./... # } package() { - cd "${srcdir}/src/github.com/wallix/${pkgname}" - install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" + cd src/github.com/wallix/awless + install -Dm755 awless "${pkgdir}/usr/bin/${pkgname}" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |