diff options
author | Damien Robert | 2020-02-08 22:39:35 +0100 |
---|---|---|
committer | Damien Robert | 2020-02-08 22:39:35 +0100 |
commit | 3e870bb4a8a9e20e4d8a71e5a0c7df2577a030a3 (patch) | |
tree | 2a4537eb37f6933bf52a5bbfcbb380ab6b5c91a4 | |
parent | 4900da937e4411ffb7bc619bc5549ff3d251665a (diff) | |
download | aur-3e870bb4a8a9e20e4d8a71e5a0c7df2577a030a3.tar.gz |
Update to match current go guidelines + add LICENSE files
Update uni PKGBUILD
upgpkg: fast-p 0.2.5-2
upgpkg: uni 1.0.0-1
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 13 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = fast-p pkgdesc = Quickly find and open a pdf among a collection of thousands of unsorted pdfs through fzf (fuzzy finder) pkgver = 0.2.5 - pkgrel = 1 + pkgrel = 2 url = https://github.com/bellecp/fast-p arch = x86_64 license = MIT @@ -1,6 +1,6 @@ pkgname=fast-p pkgver=0.2.5 -pkgrel=1 +pkgrel=2 pkgdesc='Quickly find and open a pdf among a collection of thousands of unsorted pdfs through fzf (fuzzy finder)' arch=('x86_64') repo="github.com/bellecp/$pkgname" @@ -15,7 +15,7 @@ gopkg="gopath/src/$repo" prepare() { mkdir -p ${gopkg%/*} - ln -rsf $pkgname-$pkgver $gopkg + ln -rTsf $pkgname-$pkgver $gopkg export GOPATH="$srcdir"/gopath cd $gopkg go get -v -d @@ -25,13 +25,20 @@ build() { export GOPATH="$srcdir"/gopath cd $gopkg go install \ - -gcflags "all=-trimpath=$PWD" \ - -asmflags "all=-trimpath=$PWD" \ + -trimpath \ -ldflags "-extldflags $LDFLAGS" \ -v ./... } +# ? github.com/bellecp/fast-p [no test files] +# check() { +# export GOPATH="$srcdir"/gopath +# cd $gopkg +# go test ./... +# } + package() { install -Dm755 gopath/bin/$pkgname "$pkgdir"/usr/bin/$pkgname + cd $pkgname-$pkgver + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/LICENSE } - |