summaryrefslogtreecommitdiffstats
path: root/graphics/viewnior/viewnior.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/viewnior/viewnior.SlackBuild')
-rw-r--r--graphics/viewnior/viewnior.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/graphics/viewnior/viewnior.SlackBuild b/graphics/viewnior/viewnior.SlackBuild
index 5f9145f459..63a9fc8669 100644
--- a/graphics/viewnior/viewnior.SlackBuild
+++ b/graphics/viewnior/viewnior.SlackBuild
@@ -4,7 +4,7 @@
#
# Written by Šime Ramov <email removed>
# Copyright 2016-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil.
-# Copyright 2020 B. Watson
+# Copyright 2020-2023 B. Watson
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,6 +24,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20231030 bkw: add patch for -current. doesn't break 15.0.
+# Not updating BUILD for this (it's still 1).
+
+# 20220610 bkw: update for v1.8.
+
# 20200304 bkw:
# - take over maintenance
# - use proper github URL
@@ -34,8 +39,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=viewnior
-VERSION=${VERSION:-1.7}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.8}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -78,13 +83,19 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.?z
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
# 20200304 bkw: upstream perms suck, do not revert to template:
find -L . -type d -a -exec chmod 755 {} + -o \
-type f -a -exec chmod 644 {} +
+# 20231030 bkw: this patch comes from arch (their extra/, not AUR).
+# only apply it if needed: slackware 15.0 has exiv2-0.27.5 and doesn't
+# need it.
+pkg-config exiv2 --atleast-version=0.28 && \
+ patch -p1 < $CWD/exiv2-0.28.patch
+
sed -i "s,It's,Its," man/$PRGNAM.1
CFLAGS="$SLKCFLAGS" \