summaryrefslogtreecommitdiff
path: root/graphics/jpegoptim/jpegoptim.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/jpegoptim/jpegoptim.SlackBuild')
-rw-r--r--graphics/jpegoptim/jpegoptim.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/graphics/jpegoptim/jpegoptim.SlackBuild b/graphics/jpegoptim/jpegoptim.SlackBuild
index 7edb34b213..80eaa132e2 100644
--- a/graphics/jpegoptim/jpegoptim.SlackBuild
+++ b/graphics/jpegoptim/jpegoptim.SlackBuild
@@ -22,7 +22,7 @@
# <http://www.gnu.org/licenses/>.
PRGNAM=jpegoptim
-VERSION=${VERSION:-1.4.1}
+VERSION=${VERSION:-1.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -58,8 +58,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-RELEASE.$VERSION.tar.gz || tar xvf $CWD/RELEASE.$VERSION.tar.gz
+rm -rf $PRGNAM-RELEASE.$VERSION
+if [ -e $CWD/RELEASE.$VERSION.tar.gz ]; then
+ tar xvf $CWD/RELEASE.$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-RELEASE.$VERSION.tar.gz
+fi
cd $PRGNAM-RELEASE.$VERSION
chown -R root:root .
find -L . \
@@ -69,7 +73,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
./configure \
- --prefix=/usr
+ --prefix=/usr \
+ --disable-static
make
make strip
make install DESTDIR=$PKG