summaryrefslogtreecommitdiff
path: root/graphics/pngcrush/pngcrush.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pngcrush/pngcrush.SlackBuild')
-rw-r--r--graphics/pngcrush/pngcrush.SlackBuild30
1 files changed, 7 insertions, 23 deletions
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