summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-06-01 11:11:01 -0600
committerMark Wagie2020-06-01 11:11:01 -0600
commit756f915571c28b4216ee5b33cf320da92b60fe15 (patch)
tree50453d653ef3ceabc798592f7484be2eebecc24b
parent4bd5760d8667b54048a0b5477d4c82fd5ab055b2 (diff)
downloadaur-756f915571c28b4216ee5b33cf320da92b60fe15.tar.gz
update build flags according to guidelines
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fa4e56470c4c..99ddf81f6f06 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cheat-git
pkgdesc = Allows you to create and view interactive cheatsheets on the command-line
pkgver = 3.10.1.r0.g8e602b0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/cheat/cheat
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 2d4298392557..697a588e759a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
# Contributor: Quan Guo <guotsuan@gmail.com>
pkgname=cheat-git
pkgver=3.10.1.r0.g8e602b0
-pkgrel=1
+pkgrel=2
pkgdesc="Allows you to create and view interactive cheatsheets on the command-line"
arch=('any')
url="https://github.com/cheat/cheat"
@@ -46,9 +46,11 @@ build() {
-v \
-trimpath \
-buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
-gcflags "all=-trimpath=$srcdir" \
-asmflags "all=-trimpath=$srcdir" \
- -ldflags "-extldflags $LDFLAGS" \
+ -ldflags "-extldflags \"${LDFLAGS}\"" \
-o "./dist/${pkgname%-git}" "./cmd/${pkgname%-git}"
# Clean mod cache for makepkg -C