aboutsummaryrefslogtreecommitdiff
path: root/system/lbench/lbench.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/lbench/lbench.SlackBuild')
-rw-r--r--system/lbench/lbench.SlackBuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/system/lbench/lbench.SlackBuild b/system/lbench/lbench.SlackBuild
index c0067141a61f7..1b620a8ffd090 100644
--- a/system/lbench/lbench.SlackBuild
+++ b/system/lbench/lbench.SlackBuild
@@ -26,7 +26,7 @@
# Maintained by David Spencer <baildon.research@googlemail.com>
PRGNAM=lbench
-VERSION=${VERSION:-3.2}
+VERSION=${VERSION:-3.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -72,18 +72,13 @@ 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 {} \;
-# Fix makefile to not "install" the .desktop file
-# and accept LIBS variable
-sed \
- -e "s/xdg-desktop/# xdg-desktop/g" \
- -e "/^LIBS/s/=/+=/" \
- -i Makefile
+# The makefile fails to create this directory
+mkdir -p $PKG/usr/share/icons
CXXFLAGS="$SLKCFLAGS" \
-LIBS="-lpthread" \
PREFIX=/usr \
make \
- DOCDIR=/usr/doc/$PRGNAM-$VERSION \
+ DOCDIR=/usr/doc/$PRGNAM-$VERSION
PREFIX=/usr \
make install \
@@ -92,6 +87,9 @@ make install \
MENUFILE=/usr/share/applications/$PRGNAM.desktop \
DESTDIR=$PKG
+# The makefile creates this directory but there's nothing in it
+rmdir $PKG/usr/share/appdata
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true