dmenu: respect our CFLAGS/LDFLAGS.

This commit is contained in:
Juan RP 2012-12-16 05:44:27 +01:00
parent a18d339b54
commit bd7b0da8ad
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'dmenu'
pkgname=dmenu
version=4.5
revision=1
revision=2
makedepends="libXinerama-devel"
short_desc="A generic menu for X"
maintainer="davehome <davehome@redthumb.info.tm>"
@ -14,10 +14,12 @@ long_desc="
numbers of user-defined menu items efficiently."
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() {
make ${makejobs} PREFIX=/usr DESTDIR=${DESTDIR} install
make PREFIX=/usr DESTDIR=${DESTDIR} install
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}