From cc68ed64222196da87a9526bf96ea688ae9247e7 Mon Sep 17 00:00:00 2001 From: Leo Midha Date: Sun, 16 Mar 2014 08:42:06 +0700 Subject: graphics/pngcrush: Updated for version 1.7.72. Signed-off-by: Willy Sudiarto Raharjo --- graphics/pngcrush/pngcrush.SlackBuild | 30 +++++++----------------------- graphics/pngcrush/pngcrush.info | 6 +++--- 2 files changed, 10 insertions(+), 26 deletions(-) (limited to 'graphics/pngcrush') diff --git a/graphics/pngcrush/pngcrush.SlackBuild b/graphics/pngcrush/pngcrush.SlackBuild index 747772d26d..f82c8b4c6c 100644 --- a/graphics/pngcrush/pngcrush.SlackBuild +++ b/graphics/pngcrush/pngcrush.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pngcrush -VERSION=${VERSION:-1.7.35} +VERSION=${VERSION:-1.7.72} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,20 +40,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -64,15 +50,14 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Use our CFLAGS sed -i "/^CFLAGS/s/=/+=/" Makefile -CFLAGS="$SLKCFLAGS" \ +CFLAGS+=" -DPNGCRUSH_COUNT_COLORS" \ make install -D -m0755 pngcrush $PKG/usr/bin/pngcrush @@ -80,8 +65,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ChangeLog.html \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ChangeLog.html $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/graphics/pngcrush/pngcrush.info b/graphics/pngcrush/pngcrush.info index b27007ec46..a7a58307c0 100644 --- a/graphics/pngcrush/pngcrush.info +++ b/graphics/pngcrush/pngcrush.info @@ -1,8 +1,8 @@ PRGNAM="pngcrush" -VERSION="1.7.35" +VERSION="1.7.72" HOMEPAGE="http://pmt.sourceforge.net/pngcrush/" -DOWNLOAD="http://downloads.sourceforge.net/pmt/pngcrush-1.7.35.tar.xz" -MD5SUM="154e667ddee209b7943c7e649b8722d0" +DOWNLOAD="http://downloads.sourceforge.net/pmt/pngcrush-1.7.72.tar.xz" +MD5SUM="3a1d4fdd5dbb6251aea9f0f89d3f90d9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3-65-gdbad