summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-06-01 11:09:47 -0600
committerMark Wagie2020-06-01 11:09:47 -0600
commite06d9291e9d61410db8ff52153fbf031f8b62457 (patch)
treeb05761c4ffcb286615913e025b68993bc4166403
parent876f6c0c85def81b7395248b98cc89e900839a15 (diff)
downloadaur-e06d9291e9d61410db8ff52153fbf031f8b62457.tar.gz
update build flags according to guidelins
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bd6b464112be..04c7ad06fb1b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cheat
pkgdesc = Allows you to create and view interactive cheatsheets on the command-line
pkgver = 3.10.1
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/cheat/cheat
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index f7b1d4e8241e..63f798681f1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Bogdan <d0xi at inbox dot ru>
pkgname=cheat
pkgver=3.10.1
-pkgrel=2
+pkgrel=3
pkgdesc="Allows you to create and view interactive cheatsheets on the command-line"
arch=('any')
url="https://github.com/cheat/cheat"
@@ -40,9 +40,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" "./cmd/$pkgname"
# Clean mod cache for makepkg -C