summaryrefslogtreecommitdiffstats
path: root/graphics/mcomix
diff options
context:
space:
mode:
author B. Watson2023-09-05 22:04:15 +0200
committer Willy Sudiarto Raharjo2023-09-09 05:14:21 +0200
commit5f2fc562fdd9e16e681ff295209430f9b854d4fa (patch)
treeb49123d66fe69fc1c823b9063cb00e28500ff66d /graphics/mcomix
parent60eefdf37b388787ba0e433ef8479505bd47a84e (diff)
downloadslackbuilds-5f2fc562fdd9e16e681ff295209430f9b854d4fa.tar.gz
graphics/mcomix: Updated for version 2.3.0.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/mcomix')
-rw-r--r--graphics/mcomix/mcomix.SlackBuild19
-rw-r--r--graphics/mcomix/mcomix.info8
2 files changed, 21 insertions, 6 deletions
diff --git a/graphics/mcomix/mcomix.SlackBuild b/graphics/mcomix/mcomix.SlackBuild
index 27ada6a954..5a05d2dae4 100644
--- a/graphics/mcomix/mcomix.SlackBuild
+++ b/graphics/mcomix/mcomix.SlackBuild
@@ -6,7 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230905 bkw: update for v2.3.0
+# 20230822 bkw: update for v2.2.1.
# 20230625 bkw: update for v2.1.1.
+
# Note to self: it would be possible to use bsdtar in place of unrar
# and p7zip, but it would require too much patching. Better to talk
# upstream into adding it as an option.
@@ -20,7 +23,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mcomix
-VERSION=${VERSION:-2.2.1}
+VERSION=${VERSION:-2.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -56,12 +59,22 @@ cd $PRGNAM-$VERSION
chown -R root:root .
# Bad tarball permissions (every file is +x), please do not "fix" this
# by reverting to template.
-find . -type f -a -exec chmod 644 {} \+ -o \
- -type d -a -exec chmod 755 {} \+
+find . -type f -a -exec chmod 644 {} + -o \
+ -type d -a -exec chmod 755 {} +
sed -i 's,share/man,man,g' setup.py
python3 setup.py install --root=$PKG
+# 20230905 bkw: 2.2.1 has good icons. The ones in 2.3.0 are wrong-sized,
+# e.g. the "32x32" one is actually 32x24. So I made a tarball of the old
+# icons... which didn't include the giant 256x256 one.
+rm -rf $PKG/usr/share/icons/hicolor/256x256
+( cd $PKG ; tar xvf $CWD/mcomix-good-icons.tar.xz )
+mkdir -p $PKG/usr/share/pixmaps
+
+# 20230905 bkw: old-style icon.
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
cp -a COPYING README ChangeLog $PKGDOC
diff --git a/graphics/mcomix/mcomix.info b/graphics/mcomix/mcomix.info
index 3a191d43ba..3f60de1f87 100644
--- a/graphics/mcomix/mcomix.info
+++ b/graphics/mcomix/mcomix.info
@@ -1,8 +1,10 @@
PRGNAM="mcomix"
-VERSION="2.2.1"
+VERSION="2.3.0"
HOMEPAGE="https://sourceforge.net/projects/mcomix/"
-DOWNLOAD="https://downloads.sourceforge.net/project/mcomix/MComix-2.2.1/mcomix-2.2.1.tar.gz"
-MD5SUM="2360845c9d3de9763bfa16152200c9bd"
+DOWNLOAD="https://downloads.sourceforge.net/project/mcomix/MComix-2.3.0/mcomix-2.3.0.tar.gz \
+ https://slackware.uk/~urchlay/src/mcomix-good-icons.tar.xz"
+MD5SUM="23042e3f7129fe5f876bd03c82dbc63f \
+ dea5da6a93d316d3c4aad92ec40d1be1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""