summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryochananmarqos2019-09-29 08:24:40 -0600
committeryochananmarqos2019-09-29 08:24:40 -0600
commit4453a037a139405f593a5f660d29d7fa49729c3c (patch)
tree4e5b72cf8686faccd158c5f410b5838b91b24e17
parent480bfc961f15b0b5cea16a020b752db35c2ce0df (diff)
downloadaur-4453a037a139405f593a5f660d29d7fa49729c3c.tar.gz
strip /home/yochanan/Documents/AUR/tldr++ from binary
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD16
2 files changed, 12 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5782dfec585..26b555462c9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = tldr++
pkgdesc = Community driven man pages improved with smart user interaction
pkgver = 0.6.1
- pkgrel = 2
+ pkgrel = 3
url = https://isacikgoz.me/tldr
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 2c7ec1ee809..e8b4c7a9e51 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com>
+# Contributor: iboyperson <tjquillan at gmail dot com>
pkgname=tldr++
pkgver=0.6.1
-pkgrel=2
+pkgrel=3
pkgdesc="Community driven man pages improved with smart user interaction"
arch=('any')
url="https://isacikgoz.me/tldr"
@@ -22,14 +23,19 @@ prepare() {
dep ensure
}
-
build() {
export GOPATH="$srcdir"/gopath
cd "gopath/src/github.com/isacikgoz/${pkgname%++}"
- go install -v
+
+ go build \
+ -gcflags "all=-trimpath=${PWD}" \
+ -asmflags "all=-trimpath=${PWD}" \
+ -ldflags "-extldflags ${LDFLAGS}" \
+ -o $pkgname .
}
package() {
- install -Dm755 "$srcdir/gopath/bin/${pkgname%++}" "$pkgdir/usr/bin/${pkgname%++}"
- install -Dm644 "${pkgname%++}-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd "gopath/src/github.com/isacikgoz/${pkgname%++}"
+ install -Dm755 "$pkgname" "$pkgdir/usr/bin/${pkgname%++}"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}