[arch-commits] Commit in glide/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Wed Mar 14 08:20:38 UTC 2018
Date: Wednesday, March 14, 2018 @ 08:20:37
Author: arodseth
Revision: 307633
upgpkg: glide 0.13.1-1
Modified:
glide/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-03-14 07:51:25 UTC (rev 307632)
+++ PKGBUILD 2018-03-14 08:20:37 UTC (rev 307633)
@@ -3,15 +3,13 @@
# Contributor: fanningert <thomas at fanninger.at>
pkgname=glide
-pkgver=0.13.0
-pkgrel=2
+pkgver=0.13.1
+pkgrel=1
pkgdesc='Dependency management and vendoring for Go projects'
arch=('x86_64')
-_gourl="github.com/Masterminds"
-url="https://$_gourl/glide"
+url='https://github.com/Masterminds/glide'
license=('MIT')
makedepends=('git' 'go-pie')
-depends=('glibc')
provides=('glide')
options=('!strip' '!emptydirs')
source=("git+$url#tag=v$pkgver")
@@ -26,18 +24,18 @@
export GOPATH="$srcdir/build"
export GOROOT="$GOPATH/go"
- mkdir -p "$GOPATH/src/$_gourl"
- mv "$srcdir/$pkgname" "$GOPATH/src/$_gourl/$pkgname"
+ mkdir -p "$GOPATH/src/${url#https://}"
+ mv "$srcdir/$pkgname"/* "$GOPATH/src/${url#https://}"
}
build() {
- cd "$GOPATH/src/${_gourl}/${pkgname}"
+ cd "$GOPATH/src/${url#https://}"
go fix && go build -o glide -ldflags "-X main.version=$pkgver" glide.go
}
package() {
- cd "build/src/$_gourl/$pkgname"
+ cd "$GOPATH/src/${url#https://}"
install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
More information about the arch-commits
mailing list