aboutsummaryrefslogtreecommitdiff
path: root/desktop/openbox-menu/openbox-menu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/openbox-menu/openbox-menu.SlackBuild')
-rw-r--r--desktop/openbox-menu/openbox-menu.SlackBuild24
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