diff options
author | Ryan P.C. McQuen <ryan.q@linux.com> | 2015-01-02 20:47:59 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-04 00:41:15 +0700 |
commit | 95964f9bffa64c7532b15eb24b765f3e86540893 (patch) | |
tree | 1e3d41729aca4519d83da53fc9a15dbc102b4aa0 | |
parent | 1051dcf6b8c89adbd982f87651c2d7b1009dcd7d (diff) |
graphics/mozjpeg: Updated for version 3.0.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
-rw-r--r-- | graphics/mozjpeg/mozjpeg.SlackBuild | 13 | ||||
-rw-r--r-- | graphics/mozjpeg/mozjpeg.info | 6 |
2 files changed, 12 insertions, 7 deletions
diff --git a/graphics/mozjpeg/mozjpeg.SlackBuild b/graphics/mozjpeg/mozjpeg.SlackBuild index 3aceb5a059aff..56dbace5983b2 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 820f44d1786b5..0a2ac792c59be 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="" |