diff options
Diffstat (limited to 'desktop/dmenu/dmenu.SlackBuild')
-rw-r--r-- | desktop/dmenu/dmenu.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/desktop/dmenu/dmenu.SlackBuild b/desktop/dmenu/dmenu.SlackBuild index 5dff1991e5..28b1706887 100644 --- a/desktop/dmenu/dmenu.SlackBuild +++ b/desktop/dmenu/dmenu.SlackBuild @@ -21,8 +21,10 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by Phillip Warner for version >= 4.0 + PRGNAM=dmenu -VERSION=3.9 +VERSION=4.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,13 +61,15 @@ find . \ sed -i \ -e 's/^PREFIX = \/usr\/local/PREFIX = \/usr/' \ -e 's/^MANPREFIX = ${PREFIX}\/share\/man/MANPREFIX = ${PREFIX}\/man/' \ - -e 's/^CFLAGS = /CFLAGS +=/' \ + -e 's/^CFLAGS = -std=c99 -pedantic -Wall -Os/CFLAGS += -std=c99 -pedantic -Wall/' \ config.mk CFLAGS=${SLKCFLAGS} make install DESTDIR=$PKG -( find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +( find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/man |