libraries/libzip: Updated for version 0.9

This commit is contained in:
Heinz Wiesinger 2010-05-11 22:24:11 +02:00 committed by David Somero
parent 0e1f8049f0
commit 21f7100979
2 changed files with 22 additions and 13 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for libzip
# Copyright 2007 Heinz Wiesinger <hmwiesinger@gmx.at>
# Copyright 2007-2008 Heinz Wiesinger <hmwiesinger@gmx.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libzip
VERSION=0.8
VERSION=0.9
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -e
@ -45,10 +47,17 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
find . \
\( -perm 777 -o -perm 775 -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 {} \;
# un-hardlink manpages
sed -i -e "s/LN \= ln/LN \= ln -s/" man/Makefile.in
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@ -57,15 +66,15 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--disable-static
--disable-static \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;

View file

@ -1,8 +1,8 @@
PRGNAM="libzip"
VERSION="0.8"
VERSION="0.9"
HOMEPAGE="http://www.nih.at/libzip/"
DOWNLOAD="http://www.nih.at/libzip/libzip-0.8.tar.gz"
MD5SUM="b0087c2a12b312f8ec2df1052b2acb4f"
DOWNLOAD="http://www.nih.at/libzip/libzip-0.9.tar.bz2"
MD5SUM="56b9f11c1eee5eed189a20183d7e06b0"
MAINTAINER="ppr:kut"
EMAIL="HMWiesinger@gmx.at"
APPROVED="rworkman"
APPROVED="David Somero"