summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Andrew Clemons2021-08-22 12:22:47 +0200
committer Willy Sudiarto Raharjo2021-08-25 07:11:38 +0200
commit21593bcd5ecc8d9328562a9fe0a5b7919eafaf2a (patch)
treee5603aa9f7a5a2619a2e663a1ce4749613c9b2f1
parent41544472d19f83df3f71a3e78ad4ea740976f3e7 (diff)
downloadslackbuilds-21593bcd5ecc8d9328562a9fe0a5b7919eafaf2a.tar.gz
misc/yapet: Fix desktop file handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--misc/yapet/doinst.sh3
-rw-r--r--misc/yapet/gcc6.patch11
-rw-r--r--misc/yapet/yapet.SlackBuild1
3 files changed, 4 insertions, 11 deletions
diff --git a/misc/yapet/doinst.sh b/misc/yapet/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/misc/yapet/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/misc/yapet/gcc6.patch b/misc/yapet/gcc6.patch
deleted file mode 100644
index a57e0c93c1..0000000000
--- a/misc/yapet/gcc6.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- yapet-1.0/yapet/cfg.h 2014-02-23 10:18:41.000000000 -0700
-+++ yapet-1.0/yapet/cfg.h 2016-04-14 07:06:49.665672169 -0700
-@@ -163,7 +163,7 @@
- locked = false;
- }
-
-- void is_locked() const {
-+ bool is_locked() const {
- return locked;
- }
-
diff --git a/misc/yapet/yapet.SlackBuild b/misc/yapet/yapet.SlackBuild
index d377be2ec0..fca88e49d0 100644
--- a/misc/yapet/yapet.SlackBuild
+++ b/misc/yapet/yapet.SlackBuild
@@ -101,6 +101,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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