diff options
author | ManiacTwister | 2020-02-22 21:17:51 +0100 |
---|---|---|
committer | ManiacTwister | 2020-02-22 21:17:51 +0100 |
commit | a11d71a51713ae414fc81182d402aaea91824d7a (patch) | |
tree | 7e3256e64f738d1cc00d34b7fd28be39416fed5e /PKGBUILD | |
parent | 8eab45916695b31ca56cafd7aeb7b3c9d9851f2f (diff) | |
download | aur-tunneller-git.tar.gz |
Simpler PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -15,23 +15,17 @@ pkgver() { git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } -prepare(){ - export GOPATH="$srcdir"/gopath - mkdir -p gopath/src/github.com/tunneller - cp -r $pkgname/* gopath/src/github.com/tunneller -} - build() { - cd "gopath/src/github.com/tunneller" + cd "$pkgname" -#go install - go install \ + go build \ -trimpath \ -ldflags "-extldflags $LDFLAGS" \ - -v ./... + -o tunneller . } package() { - install -Dm755 gopath/bin/tunneller "$pkgdir"/usr/bin/tunneller + cd $pkgname + install -Dm755 tunneller "$pkgdir"/usr/bin/tunneller } |