summaryrefslogtreecommitdiff
path: root/audio/alsa-tools/alsa-tools.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-02-20 08:49:27 +0700
committerErik Hanson <erik@slackbuilds.org>2014-02-21 14:41:03 -0600
commitbcc07cc38f79d59b4d060d17b7deca0f16762fbd (patch)
tree182e6fcfc7b56013cba66a2cad0d9d1c0e6a1a38 /audio/alsa-tools/alsa-tools.SlackBuild
parent6b68afeaa5484f5c47ba7f6686b5102fe9b606db (diff)
downloadslackbuilds-bcc07cc38f79d59b4d060d17b7deca0f16762fbd.tar.gz
audio/alsa-tools: Validate .desktop file
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/alsa-tools/alsa-tools.SlackBuild')
-rw-r--r--audio/alsa-tools/alsa-tools.SlackBuild15
1 files changed, 14 insertions, 1 deletions
diff --git a/audio/alsa-tools/alsa-tools.SlackBuild b/audio/alsa-tools/alsa-tools.SlackBuild
index ddf2ab4e82..0c53b7832a 100644
--- a/audio/alsa-tools/alsa-tools.SlackBuild
+++ b/audio/alsa-tools/alsa-tools.SlackBuild
@@ -13,9 +13,11 @@
# the firmware is being included in the package as well.
# *** I agree. --rworkman :-)
+# 20140219 bkw: fix .desktop files so they validate
+
PRGNAM=alsa-tools
VERSION=${VERSION:-1.0.27}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -147,6 +149,17 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+# hdspmixer.desktop and hdspconf.desktop fail desktop-file-validate.
+# We'll leave the deprecation warning for FilePattern, as it's just a
+# warning, and FilePattern might still be useful.
+sed -i \
+ -e '/^Encoding/d' \
+ -e '/^FilePattern/s,$,;,' \
+ -e '/^Icon/s,\.png *$,,' \
+ -e '/^Categories/s,Application;,,' \
+ $PKG/usr/share/applications/hdspmixer.desktop \
+ $PKG/usr/share/applications/hdspconf.desktop
+
# Niels Horn pointed out that some of the firmware shipped with this
# package conflicts with Slackware's kernel-firmware package. The files
# are identical, so just leave them out of this build.