summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Robert2019-05-07 21:10:55 +0200
committerDamien Robert2019-05-07 21:10:55 +0200
commit5ec4ce7d9fdfa43e4ca7f8f99734265ccb282443 (patch)
treef385361ab378eab9486a6264d86f7901c8a5f4ae
downloadaur-5ec4ce7d9fdfa43e4ca7f8f99734265ccb282443.tar.gz
Initial upload: fast-p 0.2.4-1 and path-extractor 0.2.0-1
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD35
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..50eb019adce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = path-extractor
+ pkgdesc = A unix filter which outputs the filepaths found in stdin
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = https://github.com/edi9999/path-extractor
+ arch = x86_64
+ license = NONE
+ makedepends = go-pie
+ source = https://github.com/edi9999/path-extractor/archive/v0.2.0.tar.gz
+ sha256sums = 7d6c7463e833305e6d27c63727fec1029651bfe8bca5e8d23ac7db920c2066e7
+
+pkgname = path-extractor
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b8b051311c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+pkgname=path-extractor
+pkgver=0.2.0
+pkgrel=1
+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"
+license=('NONE')
+makedepends=('go-pie')
+source=("$url/archive/v$pkgver.tar.gz")
+sha256sums=('7d6c7463e833305e6d27c63727fec1029651bfe8bca5e8d23ac7db920c2066e7')
+
+gopkg="gopath/src/$repo"
+
+prepare() {
+ mkdir -p ${gopkg%/*}
+ ln -rsf $pkgname-$pkgver $gopkg
+ export GOPATH="$srcdir"/gopath
+ cd $gopkg
+ go get -v -d
+}
+
+build() {
+ export GOPATH="$srcdir"/gopath
+ cd $gopkg
+ go install \
+ -gcflags "all=-trimpath=$PWD" \
+ -asmflags "all=-trimpath=$PWD" \
+ -ldflags "-extldflags $LDFLAGS" \
+ -v ./...
+}
+
+package() {
+ install -Dm755 gopath/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
+}