accessibility/magnus: Fix icon symlink.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-17 19:32:40 -05:00 committed by Willy Sudiarto Raharjo
parent b11b26d227
commit eb0aafd284
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 5 additions and 5 deletions

View File

@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20230117 bkw: BUILD=2, go ahead and include an icon instead of a symlink.
# This thing is more flexible and featureful than mag, but slower and
# more resource-intensive (due to being written in python, I guess).
@ -31,7 +33,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=magnus
VERSION=${VERSION:-1.0.3}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -98,11 +100,9 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/share/man $PKG/usr/man
gzip -9 $PKG/usr/man/man?/*
# doesn't ship an icon, expects to uses a system icon called "zoom-best-fit".
# we have such an icon in the elementary-xfce theme, include a symlink here.
sed -i '/^Icon/s,=.*,=magnus,' $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps
ln -s ../../../elementary-xfce/actions/48/zoom-best-fit.png \
$PKG/usr/share/icons/hicolor/48x48/apps
cat $CWD/$PRGNAM.png > $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc