summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Whited2020-03-07 09:35:51 -0500
committerSam Whited2020-03-07 09:35:51 -0500
commit9890f0004e35af7d3a26c064ab92ec8976ad7118 (patch)
treeaa535882c9dee9e0afba72e5251b5306a3714cfb
parentdbf58df4179583764b4aa900b4d36c514eccd749 (diff)
downloadaur-9890f0004e35af7d3a26c064ab92ec8976ad7118.tar.gz
Embed version number in built file
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 66f12076e5b..a95ac63d925 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = writefreely
pkgdesc = Federated blogging from write.as
pkgver = 0.11.2
- pkgrel = 2
+ pkgrel = 3
url = https://writefreely.org/
install = writefreely.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 8b1cbd483c2..62b68835644 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=writefreely
pkgver=0.11.2
-pkgrel=2
+pkgrel=3
pkgdesc='Federated blogging from write.as'
arch=('x86_64')
url='https://writefreely.org/'
@@ -42,7 +42,7 @@ build() {
make all
cd ../
- GO111MODULE=on make build
+ GO111MODULE=on make GOLDFLAGS="-ldflags=\"-X 'github.com/writeas/writefreely.softwareVer=${pkgver}-arch-${pkgrel}' -extldflags '\$(LDFLAGS)'\"" build
}
package() {