aboutsummaryrefslogtreecommitdiff
path: root/graphics/webp-pixbuf-loader/webp-pixbuf-loader.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/webp-pixbuf-loader/webp-pixbuf-loader.SlackBuild')
-rw-r--r--graphics/webp-pixbuf-loader/webp-pixbuf-loader.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/graphics/webp-pixbuf-loader/webp-pixbuf-loader.SlackBuild b/graphics/webp-pixbuf-loader/webp-pixbuf-loader.SlackBuild
index 32beb61370b6..c5d16b6a53f2 100644
--- a/graphics/webp-pixbuf-loader/webp-pixbuf-loader.SlackBuild
+++ b/graphics/webp-pixbuf-loader/webp-pixbuf-loader.SlackBuild
@@ -6,10 +6,15 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210910 bkw: upstream finally started doing releases!
+# - upgrade for v0.0.3
+# - include LICENSE in DOCDIR
+# - include 2 test .webp images in DOCDIR
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=webp-pixbuf-loader
-VERSION=${VERSION:-20191003.fb04954}
+VERSION=${VERSION:-0.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +27,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -54,7 +56,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
@@ -80,9 +82,12 @@ cd build
DESTDIR=$PKG $NINJA install
cd ..
+# 20210910 bkw: upstream added a README.md, but it's just
+# install instructions.
DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $DOCDIR
cat $CWD/README > $DOCDIR/README
+cp -a LICENSE* tests/*.webp $DOCDIR
cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$PRGNAM.SlackBuild
mkdir -p $PKG/install