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 /graphics/mozjpeg/mozjpeg.SlackBuild | |
parent | 1051dcf6b8c89adbd982f87651c2d7b1009dcd7d (diff) | |
download | slackbuilds-95964f9bffa64c7532b15eb24b765f3e86540893.tar.gz |
graphics/mozjpeg: Updated for version 3.0.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'graphics/mozjpeg/mozjpeg.SlackBuild')
-rw-r--r-- | graphics/mozjpeg/mozjpeg.SlackBuild | 13 |
1 files changed, 9 insertions, 4 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 |