testing/surf: respect our CFLAGS and LDFLAGS

This commit is contained in:
Sören Tempel 2018-02-20 09:47:36 +01:00
parent 8076e9a972
commit 66d7cd1b30

View File

@ -1,3 +1,4 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Orson Teodoro <orsonteodoro@hotmail.com>
# Maintainer: Orson Teodoro <orsonteodoro@hotmail.com>
pkgname=surf
@ -14,6 +15,13 @@ source="$pkgname-$pkgver.tar.gz::https://dl.suckless.org/$pkgname/$pkgname-$pkgv
builddir="$srcdir/"$pkgname-$pkgver
subpackages="$pkgname-doc"
prepare() {
default_prepare
sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \
-e '/LDFLAGS/{s/-s//;s/=/+=/}' \
"$builddir"/config.mk
}
build() {
cd "$builddir"
make