From bd7b0da8adff721baf7ed6dd57e8b5983a7ebd18 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 16 Dec 2012 05:44:27 +0100 Subject: [PATCH] dmenu: respect our CFLAGS/LDFLAGS. --- srcpkgs/dmenu/template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/dmenu/template b/srcpkgs/dmenu/template index 35307ef0976..8f1e87d8952 100644 --- a/srcpkgs/dmenu/template +++ b/srcpkgs/dmenu/template @@ -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 " @@ -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} }