summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/mozjpeg/mozjpeg.SlackBuild13
-rw-r--r--graphics/mozjpeg/mozjpeg.info6
2 files changed, 12 insertions, 7 deletions
diff --git a/graphics/mozjpeg/mozjpeg.SlackBuild b/graphics/mozjpeg/mozjpeg.SlackBuild
index 3aceb5a059..56dbace598 100644
--- a/graphics/mozjpeg/mozjpeg.SlackBuild
+++ b/graphics/mozjpeg/mozjpeg.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
-# Slackware build script for jpegoptim
+# Slackware build script for mozjpeg
+
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
# This program is free software: you can redistribute it and/or modify
@@ -22,7 +23,7 @@
# <http://www.gnu.org/licenses/>.
PRGNAM=mozjpeg
-VERSION=${VERSION:-2.1}
+VERSION=${VERSION:-3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,7 +60,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+if [ -e $CWD/v$VERSION.tar.gz ]; then
+ tar xvf $CWD/v$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+fi
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -78,7 +83,7 @@ make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-find $PKG/opt/libmozjpeg/man/ -type f -exec gzip -9 {} \;
+find $PKG/opt/${PRGNAM}/man/ -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
cp -a BUILDING.txt LICENSE.txt README $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/graphics/mozjpeg/mozjpeg.info b/graphics/mozjpeg/mozjpeg.info
index 820f44d178..0a2ac792c5 100644
--- a/graphics/mozjpeg/mozjpeg.info
+++ b/graphics/mozjpeg/mozjpeg.info
@@ -1,8 +1,8 @@
PRGNAM="mozjpeg"
-VERSION="2.1"
+VERSION="3.0"
HOMEPAGE="https://github.com/mozilla/mozjpeg"
-DOWNLOAD="https://github.com/mozilla/mozjpeg/archive/v2.1.tar.gz"
-MD5SUM="02876a213d4d757d0b2075d2d3c7a4ee"
+DOWNLOAD="https://github.com/mozilla/mozjpeg/archive/v3.0.tar.gz"
+MD5SUM="86076437098dff83eec3a660d2fa5799"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""