mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
testing/surf: respect our CFLAGS and LDFLAGS
This commit is contained in:
parent
8076e9a972
commit
66d7cd1b30
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user