Date: Saturday, October 14, 2017 @ 21:37:28 Author: arodseth Revision: 262802
upgpkg: glide 0.13.0-2 Modified: glide/trunk/PKGBUILD ----------+ PKGBUILD | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-10-14 21:36:03 UTC (rev 262801) +++ PKGBUILD 2017-10-14 21:37:28 UTC (rev 262802) @@ -4,28 +4,30 @@ pkgname=glide pkgver=0.13.0 -pkgrel=1 +pkgrel=2 pkgdesc='Dependency management and vendoring for Go projects' arch=('x86_64' 'i686') _gourl="github.com/Masterminds" -url='https://github.com/Masterminds/glide' +url="https://$_gourl/glide" license=('MIT') -makedepends=('git' 'go') +makedepends=('git' 'go-pie') depends=('glibc') provides=('glide') options=('!strip' '!emptydirs') -source=("$pkgname-$pkgver.tar.gz::https://$_gourl/glide/archive/v${pkgver}.tar.gz") -sha256sums=('ebbfa28e547db921add3557317c810f87d4ece983213d8e9899783b3e3b43ae7') +source=("git+$url#tag=v$pkgver") +md5sums=('SKIP') prepare() { - mkdir -p build/go; cd build/go + mkdir -p build/go && cd build/go for f in "/usr/lib/go/"*; do ln -s "$f"; done - rm pkg; mkdir pkg; cd pkg + rm pkg && mkdir pkg && cd pkg for f in "/usr/lib/go/pkg/"*; do ln -s "$f"; done - export GOROOT="$srcdir/build/go" + export GOPATH="$srcdir/build" + export GOROOT="$GOPATH/go" + mkdir -p "$GOPATH/src/$_gourl" - mv "$srcdir/$pkgname-$pkgver" "$GOPATH/src/$_gourl/$pkgname" + mv "$srcdir/$pkgname" "$GOPATH/src/$_gourl/$pkgname" } build() { @@ -35,9 +37,11 @@ } package() { - install -Dm755 "build/src/$_gourl/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname" - install -Dm644 "build/src/$_gourl/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "build/src/$_gourl/$pkgname" + + install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -# getver: https://github.com/Masterminds/glide -# vim:set ts=2 sw=2 et: +# getver: github.com/Masterminds/glide +# vim: ts=2 sw=2 et: