diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2015-11-13 02:01:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-11-13 02:01:26 +0700 |
commit | 2c780df73f79357338e0814a661315510cefbe68 (patch) | |
tree | c048e0c77e264391dc64b9c5c27223079912ca6f /desktop/openbox-menu/openbox-menu.SlackBuild | |
parent | d963f9f10e3f9735df2728a05faac683e4466e86 (diff) |
desktop/openbox-menu: Update DEP.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/openbox-menu/openbox-menu.SlackBuild')
-rw-r--r-- | desktop/openbox-menu/openbox-menu.SlackBuild | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/desktop/openbox-menu/openbox-menu.SlackBuild b/desktop/openbox-menu/openbox-menu.SlackBuild index 2882509fbd11b..7dccec529934e 100644 --- a/desktop/openbox-menu/openbox-menu.SlackBuild +++ b/desktop/openbox-menu/openbox-menu.SlackBuild @@ -1,6 +1,7 @@ #!/bin/sh +# # Slackware build script for openbox-menu. - +# # Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # @@ -23,7 +24,7 @@ PRGNAM=openbox-menu VERSION=${VERSION:-0.7.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -68,25 +69,36 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +rm -rf {archlinux,.hg*} + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +patch -p1 < $CWD/debian_build.patch + make PREFIX=/usr make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +rm -rf $PKG/bin +install -d $PKG/usr/bin +install -D -m755 openbox-menu $PKG/usr/bin/openbox-menu + +install -d $PKG/usr/man/man1 +install -D -m644 $CWD/openbox-menu.1 $PKG/usr/man/man1/openbox-menu.1 + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + DOCS="AUTHORS ChangeLog COPYING README.md THANKS TODO" mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $CWD/menu.xml-sample $PKG/usr/doc/$PRGNAM-$VERSION/menu.xml-sample cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -rm -rf $PKG/bin -mkdir -p $PKG/usr/bin -cp openbox-menu $PKG/usr/bin - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |