summaryrefslogtreecommitdiff
path: root/graphics/qiv/qiv.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-12-27 15:01:38 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-31 18:06:25 +0700
commit0030076b42dd6011a3215af1c30ebd57d24500b3 (patch)
treef55fb80ff521d08b00d5de0ec929f8f10c02d401 /graphics/qiv/qiv.SlackBuild
parentd452da1a2630e10d633466d8f8f636949b6c71fd (diff)
downloadslackbuilds-0030076b42dd6011a3215af1c30ebd57d24500b3.tar.gz
graphics/qiv: Updated for version 2.3.2, add image formats.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'graphics/qiv/qiv.SlackBuild')
-rw-r--r--graphics/qiv/qiv.SlackBuild55
1 files changed, 38 insertions, 17 deletions
diff --git a/graphics/qiv/qiv.SlackBuild b/graphics/qiv/qiv.SlackBuild
index 6933f0602d..08aaea2aa1 100644
--- a/graphics/qiv/qiv.SlackBuild
+++ b/graphics/qiv/qiv.SlackBuild
@@ -8,6 +8,14 @@
# version had no license, modified version released under the WTFPL. See
# http://www.wtfpl.net/txt/copying/ for details.
+# 20191226 bkw:
+# - Upgrade for v2.3.2. This was released a month after my last update,
+# but the download page on the site doesn't link to it (found it just
+# now by editing the URL for v2.3.1), so my update-checker script
+# never saw it...
+# - As compensation for my tardiness, add support for a bunch of new
+# image types.
+
# 20170209 bkw:
# - Take over maintenance
# - i486 => i586
@@ -17,7 +25,7 @@
# - Don't install README.INSTALL
PRGNAM=qiv
-VERSION=${VERSION:-2.3.2pre20160530}
+VERSION=${VERSION:-2.3.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -50,26 +58,39 @@ fi
set -e
-OLDVER=2.3.1
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$OLDVER
-tar xvf $CWD/$PRGNAM-$OLDVER.tgz
-cd $PRGNAM-$OLDVER
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-# bugfixes from upstream's git repo.
-patch -p1 < $CWD/648ed5a.diff
-
-sed -i "s/-O2 -Wall/$SLKCFLAGS/" Makefile
-sed -i "s|\./qiv|echo &|" Makefile # remove test
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# Patch to add potential support for various image formats. This patch
+# doesn't actually contain any code for decoding/displaying new image
+# formats. All it does is add file extensions and magic to the list
+# of filetypes qiv will attempt to display via imlib and/or pixbuf.
+# It's up to imlib/pixbuf to actually support the image types. Some of
+# these are already supported in Slackware, a few require optional deps
+# (see README).
+
+# For the optional ones (e.g. webp), this patch doesn't do any harm
+# if the support library's not installed. All it does is make qiv warn
+# "Unable to read file" on stderr, instead of silently skipping it.
+
+patch -p1 < $CWD/new_formats.diff
+
+# Three sed expressions here. In order:
+# 1. Make qiv build with our compiler flags.
+# 2. Disable the test, since it requires X to be running and
+# accepting connections from root.
+# 3. Put man page where Slackware likes them.
+sed -i -e "s/-O2 -Wall/$SLKCFLAGS/" \
+ -e "s|\./qiv|echo &|" \
+ -e 's,/share/man,/man,g' \
+ Makefile
make
make install PREFIX=$PKG/usr