summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Robert2020-02-20 16:43:27 +0100
committerDamien Robert2020-02-20 16:43:27 +0100
commit8b63c6a0142fb5702da2d8e3605ca77e4efe9778 (patch)
tree177ac8d91425fdeac808e48759555e8daa857ad1
parent9c64df5618696bbd37e92ef3d3d856f3c52f605a (diff)
downloadaur-8b63c6a0142fb5702da2d8e3605ca77e4efe9778.tar.gz
Fix license installation path
-rw-r--r--PKGBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 77a9d2a50ae..c4ed3faf1a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,16 +13,16 @@ sha256sums=('7d6c7463e833305e6d27c63727fec1029651bfe8bca5e8d23ac7db920c2066e7')
gopkg="gopath/src/$repo"
prepare() {
- mkdir -p ${gopkg%/*}
- ln -rTsf $pkgname-$pkgver $gopkg
- export GOPATH="$srcdir"/gopath
- cd $gopkg
+ mkdir -p "${gopkg%/*}"
+ ln -rTsf "$pkgname-$pkgver" "$gopkg"
+ export GOPATH="$srcdir/gopath"
+ cd "$gopkg"
go get -v -d
}
build() {
- export GOPATH="$srcdir"/gopath
- cd $gopkg
+ export GOPATH="$srcdir/gopath"
+ cd "$gopkg"
go install \
-trimpath \
-ldflags "-extldflags $LDFLAGS" \
@@ -37,5 +37,5 @@ build() {
# }
package() {
- install -Dm755 gopath/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
+ install -Dm755 "gopath/bin/$pkgname" -t "$pkgdir/usr/bin"
}