From bcc07cc38f79d59b4d060d17b7deca0f16762fbd Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 20 Feb 2014 08:49:27 +0700 Subject: audio/alsa-tools: Validate .desktop file Signed-off-by: Willy Sudiarto Raharjo --- audio/alsa-tools/alsa-tools.SlackBuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'audio/alsa-tools') 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. -- cgit v1.2.3