summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-10-09 17:29:28 +0000
committer Eric Hameleers <alien@slackware.com>2020-10-09 17:29:28 +0000
commitc9de1868df23b346fe1368c6b2f5efb538e006da (patch)
treeb338f5ac38d0e99c1204bd36b9e50cbb74a6a71d
parentd1be4ec49b6d14b3e4a681e0b3e9f1b7b204f7f0 (diff)
downloadasb-c9de1868df23b346fe1368c6b2f5efb538e006da.tar.gz
asb-c9de1868df23b346fe1368c6b2f5efb538e006da.tar.xz
cadence: add 'X-DAW' category to the desktop file (for liveslak)
-rwxr-xr-xcadence/build/cadence.SlackBuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/cadence/build/cadence.SlackBuild b/cadence/build/cadence.SlackBuild
index 063cf384..f9c52a7d 100755
--- a/cadence/build/cadence.SlackBuild
+++ b/cadence/build/cadence.SlackBuild
@@ -33,6 +33,8 @@
# Changelog:
# 0.9.1-1: 26/Jun/2020 by Eric Hameleers <alien@slackware.com>
# * Initial build.
+# 0.9.1-2: 09/oct/2020 by Eric Hameleers <alien@slackware.com>
+# * Add X-DAW category to the desktop file.
#
# Run 'sh cadence.SlackBuild' to build a Slackware package.
# The package (.t?z) and .txt file as well as build logs are created in /tmp .
@@ -43,9 +45,10 @@
PRGNAM=cadence
SRCNAM=Cadence
VERSION=${VERSION:-0.9.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(nproc) "}
TAG=${TAG:-alien}
+PKGTYPE="txz'
DOCS=" COPYING INSTALL.md README.md TODO"
@@ -181,6 +184,14 @@ rm -rf $PKG/usr/share/applications/claudia*
rm -rf $PKG/usr/share/cadence/*/*claudia*
rm -rf $PKG/usr/share/icons/hicolor/*/apps/claudia*
+# Add 'X-DAW' category to the desktop file (for liveslak):
+for DESKTOPF in $PKG/usr/share/applications/*.desktop ; do
+ if ! grep -q X-DAW $DESKTOPF ; then
+ sed -i $DESKTOPF \
+ -e "s/^Categories=\(.*\)/Categories=X-DAW;\1/"
+ fi
+done
+
# Add this to the doinst.sh:
mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh