summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Robert2020-02-08 22:39:35 +0100
committerDamien Robert2020-02-08 22:39:35 +0100
commit9c64df5618696bbd37e92ef3d3d856f3c52f605a (patch)
treec7de30964be82a391b358e6e2347f85c0939295c
parent5ec4ce7d9fdfa43e4ca7f8f99734265ccb282443 (diff)
downloadaur-9c64df5618696bbd37e92ef3d3d856f3c52f605a.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--.SRCINFO2
-rw-r--r--PKGBUILD16
2 files changed, 12 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 50eb019adce..8f8f02e51c7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = path-extractor
pkgdesc = A unix filter which outputs the filepaths found in stdin
pkgver = 0.2.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/edi9999/path-extractor
arch = x86_64
license = NONE
diff --git a/PKGBUILD b/PKGBUILD
index b8b051311c7..77a9d2a50ae 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
pkgname=path-extractor
pkgver=0.2.0
-pkgrel=1
+pkgrel=2
pkgdesc='A unix filter which outputs the filepaths found in stdin'
arch=('x86_64')
repo="github.com/edi9999/$pkgname"
-url="https://github.com/edi9999/$pkgname"
+url="https://$repo"
license=('NONE')
makedepends=('go-pie')
source=("$url/archive/v$pkgver.tar.gz")
@@ -14,7 +14,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
@@ -24,12 +24,18 @@ build() {
export GOPATH="$srcdir"/gopath
cd $gopkg
go install \
- -gcflags "all=-trimpath=$PWD" \
- -asmflags "all=-trimpath=$PWD" \
+ -trimpath \
-ldflags "-extldflags $LDFLAGS" \
-v ./...
}
+# Skip check, they don't pass
+# check() {
+# export GOPATH="$srcdir"/gopath
+# cd $gopkg
+# go test ./...
+# }
+
package() {
install -Dm755 gopath/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}