summaryrefslogtreecommitdiffstats
path: root/multimedia/amarok/amarok.SlackBuild
diff options
context:
space:
mode:
author Reza Talebi <reza.talebi.73@outlook.com>2024-10-12 03:56:40 +0330
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-12 09:40:53 +0700
commit3959cf0cb6d692ae33fe85a941e98f53a7cd8af3 (patch)
tree538299dee24142119538afd446545c000de64c38 /multimedia/amarok/amarok.SlackBuild
parentd7d6691a9f42a45a9897d9da377ff41844661a63 (diff)
downloadslackbuilds-3959cf0cb6d692ae33fe85a941e98f53a7cd8af3.tar.gz
slackbuilds-3959cf0cb6d692ae33fe85a941e98f53a7cd8af3.tar.xz
multimedia/amarok: Fixed sbopkglint failures.
Signed-off-by: Reza Talebi <reza.talebi.73@outlook.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--multimedia/amarok/amarok.SlackBuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/multimedia/amarok/amarok.SlackBuild b/multimedia/amarok/amarok.SlackBuild
index 874add6909..321fba5756 100644
--- a/multimedia/amarok/amarok.SlackBuild
+++ b/multimedia/amarok/amarok.SlackBuild
@@ -85,6 +85,12 @@ cd build
make install DESTDIR=$PKG
cd ..
+find $PKG/usr/share/applications -type f -name "*.desktop" -exec chmod 644 {} \;
+
+chown root:root $PKG/usr/share/applications/*.desktop
+
+sed -i '/SingleMainWindow/d' $PKG/usr/share/applications/org.kde.amarok.desktop
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -92,6 +98,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+if [ -d $PKG/usr/share/doc ]; then
+ mv $PKG/usr/share/doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+ rm -rf $PKG/usr/share/doc
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh