diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-13 14:47:28 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-16 12:11:26 +0700 |
commit | 02cb0605bac0e9177508040ffd1b68b436226527 (patch) | |
tree | cff1888a6062c257ce20549d5f1bdc2de4bf770e /system/qtgzmanager | |
parent | c9f4d84b83859b61dc8348a0c0046a6f493aa9fd (diff) | |
download | slackbuilds-02cb0605bac0e9177508040ffd1b68b436226527.tar.gz |
system/qtgzmanager: Fix doinst.sh and .desktop.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/qtgzmanager')
-rw-r--r-- | system/qtgzmanager/doinst.sh | 3 | ||||
-rw-r--r-- | system/qtgzmanager/qtgzmanager.SlackBuild | 17 |
2 files changed, 14 insertions, 6 deletions
diff --git a/system/qtgzmanager/doinst.sh b/system/qtgzmanager/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/system/qtgzmanager/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/system/qtgzmanager/qtgzmanager.SlackBuild b/system/qtgzmanager/qtgzmanager.SlackBuild index bc9528ab3d..f33163798e 100644 --- a/system/qtgzmanager/qtgzmanager.SlackBuild +++ b/system/qtgzmanager/qtgzmanager.SlackBuild @@ -4,13 +4,17 @@ # Written by Alexandre Albuquerque Arnt <aaarnt@gmail.com> # Based on http://slackbuilds.org/template.SlackBuild +# 20220413 bkw: Modified by SlackBuilds.org, BUILD=2: +# - add doinst.sh (update-desktop-database is needed). +# - silence desktop-file-validate warnings. + # 20220210 bkw: Modified by SlackBuilds.org, to fix the build on 15.0. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=qtgzmanager VERSION=${VERSION:-1.0.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -57,6 +61,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +# 20220413 bkw: desktop-file-validate warnings. +sed -i -e '/^Encoding/d' -e '/^Cat/s,Application;,,' $PRGNAM.desktop + # 20220210 bkw: ordered comparison... sed -i 's,>= 0),),' src/unixcommand.cpp @@ -68,13 +75,10 @@ qmake-qt4 \ make mkdir -p $PKG/usr/bin -cp -a bin/qtgzmanager $PKG/usr/bin - -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 +install -m0755 -s bin/qtgzmanager $PKG/usr/bin mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a copying INSTALL LICENSE THANKS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a copying LICENSE THANKS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/usr/share/applications/ @@ -85,6 +89,7 @@ cp -a resources/images/QTGZ.png $PKG/usr/share/pixmaps 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 |