dmenu: respect our CFLAGS/LDFLAGS.

This commit is contained in:
Juan RP 2012-12-16 05:44:27 +01:00
parent a18d339b54
commit bd7b0da8ad

View file

@ -1,7 +1,7 @@
# Template file for 'dmenu' # Template file for 'dmenu'
pkgname=dmenu pkgname=dmenu
version=4.5 version=4.5
revision=1 revision=2
makedepends="libXinerama-devel" makedepends="libXinerama-devel"
short_desc="A generic menu for X" short_desc="A generic menu for X"
maintainer="davehome <davehome@redthumb.info.tm>" maintainer="davehome <davehome@redthumb.info.tm>"
@ -14,10 +14,12 @@ long_desc="
numbers of user-defined menu items efficiently." numbers of user-defined menu items efficiently."
do_build() { do_build() {
make ${makejobs} X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 sed -i -e "s|^CFLAGS =|CFLAGS += |g" \
-e "s|^LDFLAGS = \-s|LDFLAGS += |g" config.mk
make ${makejobs} X11INC=/usr/include/X11 X11LIB=/usr/lib
} }
do_install() { do_install() {
make ${makejobs} PREFIX=/usr DESTDIR=${DESTDIR} install make PREFIX=/usr DESTDIR=${DESTDIR} install
vinstall LICENSE 644 usr/share/licenses/${pkgname} vinstall LICENSE 644 usr/share/licenses/${pkgname}
} }