dwm: build with our {C,LD}FLAGS.

This commit is contained in:
Juan RP 2014-12-19 11:32:39 +01:00
parent e953f3d31a
commit 4c4dbf92ea
1 changed files with 4 additions and 7 deletions

View File

@ -1,10 +1,10 @@
# Template file for 'dwm'
pkgname=dwm
version=6.0
revision=3
revision=4
homepage="http://dwm.suckless.org"
distfiles="http://dl.suckless.org/dwm/dwm-$version.tar.gz"
makedepends="libX11-devel libXinerama-devel"
makedepends="libXinerama-devel"
short_desc="A dynamic window manager for X"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
@ -12,11 +12,8 @@ checksum=b2b9483de69259eeea56844899bb2385158d3e79a42d82b10c142099fc8eeb56
do_build() {
cp ${FILESDIR}/config.h config.h
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
sed -i 's/^CFLAGS = -g/#CFLAGS += -g/g' config.mk
sed -i 's/^#CFLAGS = -std/CFLAGS += -std/g' config.mk
sed -i 's/^LDFLAGS = -g/#LDFLAGS += -g/g' config.mk
sed -i 's/^#LDFLAGS = -s/LDFLAGS += -s/g' config.mk
sed -i "/CFLAGS/s|\${CPPFLAGS}|& $CFLAGS|g" config.mk
sed -i "/LDFLAGS/s|\-s|$LDFLAGS|g" config.mk
make CC=$CC INCS="-I." LIBS="-lX11 -lXinerama"
}