summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJakub Klinkovsk√Ĺ2020-08-18 13:26:36 +0200
committerJakub Klinkovsk√Ĺ2020-08-18 13:26:36 +0200
commit9c67a8afa87ca6cd698970a8edbc512095cdf2b0 (patch)
tree0981de69147db70afdaaa543e232b842bf00a8d6 /PKGBUILD
parent7771e33eca7be83b17e58caa5500987da71f75b6 (diff)
downloadaur-9c67a8afa87ca6cd698970a8edbc512095cdf2b0.tar.gz
apply CFLAGS and LDFLAGS from makepkg.conf
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 07c81d9d6d9..5101395d4a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=mandoc
pkgver=1.14.5
-pkgrel=2
+pkgrel=3
pkgdesc='A suite of tools compiling mdoc from the OpenBSD project'
arch=('i686' 'x86_64')
url='https://mdocml.bsd.lv/'
@@ -17,7 +17,7 @@ source=("https://mdocml.bsd.lv/snapshots/$pkgname-$pkgver.tar.gz"
'mandoc.timer'
'fix-tbl-segfault.patch')
sha256sums=('8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7'
- 'f0e8ddb61d063bec02a6a1f73f5d979bb548e7aabcf0a27c0d5c29c4194bfc8e'
+ '383772d5dd7c51319588ac4b63d4e7c452490568f6a3e905d118fdd6c4aa8a68'
'2091411d5f87a3c371a5ba74b4773d1e454046446fa2cb045485979e52419bb6'
'74d6a02b97a17fffddcc0a3dc830e811348b1f6c6b84f867882c776d50f00ea4'
'12e6138be6ec2e8a34373876d8a5fce387a1d2b51a461ae20e1d98637af1d15c')
@@ -28,6 +28,9 @@ prepare() {
# fix configure script - see https://aur.archlinux.org/packages/mandoc/#comment-739085
sed -i -e 's/^CC=.*/CC=cc/' ./configure
+ # apply CFLAGS and LDFLAGS from makepkg.conf
+ sed -i -e "s/^CFLAGS=.*/CFLAGS=\"$CFLAGS\"/" ./configure
+ sed -i -e "s/^LDFLAGS=.*/LDFLAGS=\"$LDFLAGS\"/" ./configure
# fix segfault when formatting tables on some man pages
patch -Np0 -i ../fix-tbl-segfault.patch