aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-01-12 18:41:32 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:05 +0700
commitb3b96134834a45b39024ef62c5cec10304896451 (patch)
tree2d179a97f5f9c81230328e78fc1742e3096bb8f4 /graphics
parentd6905c085ad0f7b15e69b9933ea51842ab9677bb (diff)
graphics/mcomix: Added (comic book reader)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/mcomix/README12
-rw-r--r--graphics/mcomix/doinst.sh9
-rw-r--r--graphics/mcomix/mcomix.SlackBuild70
-rw-r--r--graphics/mcomix/mcomix.info10
-rw-r--r--graphics/mcomix/slack-desc19
5 files changed, 120 insertions, 0 deletions
diff --git a/graphics/mcomix/README b/graphics/mcomix/README
new file mode 100644
index 000000000000..4ee2c791995a
--- /dev/null
+++ b/graphics/mcomix/README
@@ -0,0 +1,12 @@
+mcomix (comic book reader)
+
+MComix is a user-friendly, customizable image viewer. It is
+specifically designed to handle comic books (both Western comics and
+manga) and supports a variety of container formats (including CBR,
+CBZ, CB7, CBT, LHA and PDF).
+
+Optional runtime dependencies:
+
+- unrar (for .cbr support)
+- p7zip (for .cb7 support)
+- mupdf (for .pdf support)
diff --git a/graphics/mcomix/doinst.sh b/graphics/mcomix/doinst.sh
new file mode 100644
index 000000000000..3e5691a052b5
--- /dev/null
+++ b/graphics/mcomix/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/graphics/mcomix/mcomix.SlackBuild b/graphics/mcomix/mcomix.SlackBuild
new file mode 100644
index 000000000000..059cdc6c4e30
--- /dev/null
+++ b/graphics/mcomix/mcomix.SlackBuild
@@ -0,0 +1,70 @@
+#!/bin/bash
+
+# Slackware build script for mcomix
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20230111 bkw: This is an all-new SlackBuild for mcomix. We removed
+# mcomix from SBo in May of 2020 because it needed python2 libraries
+# that no longer existed in Slackware. It was replaced with mcomix3,
+# a python3 fork of mcomix. Since then, the original mcomix has been
+# ported to python3, and mcomix3 development has ended.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=mcomix
+VERSION=${VERSION:-2.1.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+# No need for SLKCFLAGS (no C code here). No LIBDIRSUFFIX either,
+# setup.py is smart enough to choose lib or lib64 as needed.
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+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 {} \+
+
+sed -i 's,share/man,man,g' setup.py
+python3 setup.py install --root=$PKG
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a COPYING README ChangeLog $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$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
diff --git a/graphics/mcomix/mcomix.info b/graphics/mcomix/mcomix.info
new file mode 100644
index 000000000000..d115cae26ed7
--- /dev/null
+++ b/graphics/mcomix/mcomix.info
@@ -0,0 +1,10 @@
+PRGNAM="mcomix"
+VERSION="2.1.0"
+HOMEPAGE="https://sourceforge.net/projects/mcomix/"
+DOWNLOAD="https://downloads.sourceforge.net/project/mcomix/MComix-2.1.0/mcomix-2.1.0.tar.gz"
+MD5SUM="60648a4de2aca03e9c716c7a9bb1f0d4"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/graphics/mcomix/slack-desc b/graphics/mcomix/slack-desc
new file mode 100644
index 000000000000..a049e626a9cb
--- /dev/null
+++ b/graphics/mcomix/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+mcomix: mcomix (comic book reader)
+mcomix:
+mcomix: MComix is a user-friendly, customizable image viewer. It is
+mcomix: specifically designed to handle comic books (both Western comics and
+mcomix: manga) and supports a variety of container formats (including CBR,
+mcomix: CBZ, CB7, CBT, LHA and PDF).
+mcomix:
+mcomix:
+mcomix:
+mcomix:
+mcomix: