summaryrefslogtreecommitdiffstats
path: root/accessibility/magnus/magnus.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/magnus/magnus.SlackBuild')
-rw-r--r--accessibility/magnus/magnus.SlackBuild25
1 files changed, 5 insertions, 20 deletions
diff --git a/accessibility/magnus/magnus.SlackBuild b/accessibility/magnus/magnus.SlackBuild
index fc89d1ec97..f02cd922ca 100644
--- a/accessibility/magnus/magnus.SlackBuild
+++ b/accessibility/magnus/magnus.SlackBuild
@@ -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}
@@ -48,25 +50,10 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -98,11 +85,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