summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Poldrack2020-08-14 08:58:44 +0200
committerMoritz Poldrack2020-08-14 08:58:44 +0200
commitd688930eecba755f543c0d69890f2b81c501bf07 (patch)
treec40a05e32b26ecc4dcce1b47e2aafa4bac1eb0fc
parenta736eda54448c5abc0188ea9036869eb1a7e8f79 (diff)
downloadaur-d688930eecba755f543c0d69890f2b81c501bf07.tar.gz
added version information to binary
-rw-r--r--.SRCINFO2
-rwxr-xr-xPKGBUILD3
2 files changed, 3 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 25ee6521d92d..5284571672b3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = got
pkgdesc = Simple golang package and CLI tool to download large files faster than cURL and Wget!
pkgver = 0.1.5
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/melbahja/got
arch = x86_64
arch = arm64
diff --git a/PKGBUILD b/PKGBUILD
index eeceb778913d..5dc6241682d0 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=got
pkgver=0.1.5
-pkgrel=1
+pkgrel=2
pkgdesc='Simple golang package and CLI tool to download large files faster than cURL and Wget!'
arch=('x86_64' 'arm64')
url="https://github.com/melbahja/$pkgname"
@@ -21,6 +21,7 @@ build() {
-buildmode=pie \
-mod=readonly \
-modcacherw \
+ -ldflags "-X main.version=$pkgver" \
-o got
}