diff --git a/deps/gksu/doinst.sh b/deps/gksu/doinst.sh new file mode 100644 index 0000000..5fb2893 --- /dev/null +++ b/deps/gksu/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/deps/gksu/gksu.SlackBuild b/deps/gksu/gksu.SlackBuild index dbae06f..1e2cef4 100644 --- a/deps/gksu/gksu.SlackBuild +++ b/deps/gksu/gksu.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for gksu -# Copyright 2013-2014 Willy Sudiarto Raharjo +# Copyright 2013-2016 Willy Sudiarto Raharjo # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=gksu VERSION=${VERSION:-2.0.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_msb} if [ -z "$ARCH" ]; then @@ -37,8 +37,6 @@ fi wget -c http://people.debian.org/~kov/gksu/$PRGNAM-$VERSION.tar.gz - - CWD=$(pwd) TMP=${TMP:-/tmp/msb} PKG=$TMP/package-$PRGNAM @@ -73,6 +71,8 @@ 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 {} \; +sed -i -e 's|/usr/bin/x-terminal-emulator|-l mate-terminal|g' gksu.desktop + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -115,6 +115,7 @@ chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}