diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 48 |
1 files changed, 23 insertions, 25 deletions
@@ -1,40 +1,38 @@ -# Maintainer: Daniel Martà <mvdan@mvdan.cc> +# Maintainer: Dmitri Goutnik <dg@syrec.org> +# Contributor: Daniel Martà <mvdan@mvdan.cc> pkgname=gb -pkgver=0.4.3 +pkgver=0.4.4 pkgrel=1 pkgdesc="The project based build tool for Go" -url="https://github.com/constabulary/${pkgname}" -license=('MIT') arch=('i686' 'x86_64') -conflicts=() -provides=() +url="https://github.com/constabulary/gb" +license=('MIT') +depends=('glibc') makedepends=('git' 'go') -options=('!strip') -source=("${pkgname}::git+${url}") -sha256sums=('SKIP') -_cmds="gb gb-vendor" +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('c7993ae1994ad85cbe35b833d36a137772599fe7ed720edec2d76ebf3fc4313b') prepare() { - cd "${srcdir}" - mkdir -p "src/github.com/constabulary" - GOPATH="$PWD" go get -d github.com/pkg/errors - mv "${pkgname}" "src/github.com/constabulary/${pkgname}" + mkdir -p src/github.com/constabulary + mv ${pkgname}-${pkgver} src/github.com/constabulary/gb + env GOPATH="${srcdir}" go get -d github.com/pkg/errors } build() { - cd "${srcdir}/src/github.com/constabulary/${pkgname}" - for cmd in ${_cmds}; do - pushd "cmd/${cmd}" - GOPATH="${srcdir}" go build - popd - done + cd src/github.com/constabulary/gb + for c in gb gb-vendor; do + env GOPATH="${srcdir}" go build ./cmd/${c} + done } +# check() { +# cd src/github.com/constabulary/gb +# env GOPATH="${srcdir}" ./gb test +# } + package() { - cd "${srcdir}/src/github.com/constabulary/${pkgname}" - for cmd in ${_cmds}; do - install -Dm755 "cmd/${cmd}/${cmd}" "${pkgdir}/usr/bin/${cmd}" - done - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd src/github.com/constabulary/gb + install -Dm755 -t "${pkgdir}/usr/bin" gb gb-vendor + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |