summaryrefslogtreecommitdiffstats
path: root/desktop/lumina/lumina.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/lumina/lumina.SlackBuild')
-rw-r--r--desktop/lumina/lumina.SlackBuild23
1 files changed, 20 insertions, 3 deletions
diff --git a/desktop/lumina/lumina.SlackBuild b/desktop/lumina/lumina.SlackBuild
index a2ec1568a7..df5b6cfd04 100644
--- a/desktop/lumina/lumina.SlackBuild
+++ b/desktop/lumina/lumina.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for lumina
-# 2019, 2020, updated by Chris Abela, Malta, <kristofru@gmail.com>
+# 2019, 2020, 2022 updated by Chris Abela, Malta, <kristofru@gmail.com>
# Sasongko Bawono <sasongko262@gmail.com>
# Thanks to :
@@ -30,7 +30,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lumina
-VERSION=${VERSION:-1.6.0}
+VERSION=${VERSION:-1.6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -84,7 +84,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-sed -i "s|/media|/run/media/\$USER|" src-qt5/core/lumina-desktop/LDesktop.cpp
qmake-qt5 \
PREFIX=/usr \
LIBPREFIX=/usr/lib${LIBDIRSUFFIX} \
@@ -105,12 +104,30 @@ install -m 0755 $CWD/xinitrc.lumina $PKG/etc/X11/xinit/xinitrc.lumina
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
+# usr/share/icons should not contain files with executable permission
+find $PKG/usr/share/icons -executable -type f -exec chmod -x {} \;
+
+# Key "OnlyShowIn" in group "Desktop Entry" contains an unregistered value
+# "Lumina"; values extending the format should start with "X-"
+sed -i 's/OnlyShowIn=Lumina/OnlyShowIn=X-Lumina/g' \
+ $PKG/usr/share/applications/lumina-*.desktop
+
+# "Categories" is present in group "Desktop Entry", but the type is "Link" while
+# this key is only valid for type "Application"
+sed -i '/Categories/d' $PKG/usr/share/applications/lumina-support.desktop
+
+# Value "Office;Development;" for key "Categories" in group "Desktop Entry"
+# contains more than one main category; application might appear more than
+# once in the application menu
+sed -i 's/Office;//' $PKG/usr/share/applications/lumina-textedit.desktop
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE