aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-07-03 05:41:33 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-08 16:42:06 +0700
commitb24d78348a5675c8971499d148b9b4dd01e89f00 (patch)
tree8ce2a35fcc4057311338c40bff92e7cb5df7a67f /audio
parent137af17762a8d7acba48a8df4942abf9761dfa47 (diff)
audio/ardour: Make .desktop file validate.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/ardour/ardour.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/audio/ardour/ardour.SlackBuild b/audio/ardour/ardour.SlackBuild
index f2d87b89bbfb..a7097f2213e7 100644
--- a/audio/ardour/ardour.SlackBuild
+++ b/audio/ardour/ardour.SlackBuild
@@ -23,11 +23,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230703 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - make .desktop file validate.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ardour
VERSION=${VERSION:-7.5.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,9 +83,9 @@ cd Ardour-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} + -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -110,7 +113,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/share/{appdata,applications,icons}
cp build/gtk2_ardour/ardour7.appdata.xml $PKG/usr/share/appdata/
-cp build/gtk2_ardour/ardour7.desktop $PKG/usr/share/applications/
+
+# 20230703 bkw: desktop-file-validate complained about Categories.
+# The desktop menu spec:
+# https://specifications.freedesktop.org/menu-spec/latest/apa.html
+# ...has no such category as AudioEditing.
+sed 's,AudioEditing;,X-&,' build/gtk2_ardour/ardour7.desktop \
+ > $PKG/usr/share/applications/ardour7.desktop
+
for isize in 16 22 32 48 ; do
mkdir -p $PKG/usr/share/icons/hicolor/${isize}x${isize}/apps
cp gtk2_ardour/icons/application-x-ardour_${isize}px.png \