libraries/zziplib: Updated for version 0.13.72, new maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
5fad810a40
commit
41a86e2c85
|
@ -1,3 +1,9 @@
|
|||
zziplib (a lightweight zip library)
|
||||
|
||||
zziplib provides read access on zip archives and unpacked data. It
|
||||
features an additional simplified API following the standard Posix API
|
||||
for file access.
|
||||
|
||||
The zziplib library is intentionally lightweight, it offers the
|
||||
ability to easily extract data from files archived in a single zip
|
||||
file. Applications can bundle files into a single zip archive and
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
zziplib: zziplib (A lightweight zip library)
|
||||
zziplib: zziplib (a lightweight zip library)
|
||||
zziplib:
|
||||
zziplib: zziplib provides read access on zip archives and unpacked data. It
|
||||
zziplib: features an additional simplified API following the standard Posix API
|
||||
zziplib: for file access.
|
||||
zziplib:
|
||||
zziplib:
|
||||
zziplib:
|
||||
zziplib:
|
||||
zziplib: The zziplib library is intentionally lightweight, it offers the
|
||||
zziplib: ability to easily extract data from files archived in a single zip
|
||||
zziplib: file. Applications can bundle files into a single zip archive and
|
||||
zziplib: access them. The implementation is based only on the (free) subset
|
||||
zziplib: of compression with the zlib algorithm which is actually used by the
|
||||
zziplib: zip/unzip tools.
|
||||
zziplib:
|
||||
zziplib: Homepage: http://zziplib.sourceforge.net/zzip-index.html
|
||||
zziplib:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for zziplib
|
||||
|
||||
# Copyright 2012-2020 Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||
# Copyright 2012-2020 Larry Hajali <email removed>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -22,11 +22,24 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20230604 bkw:
|
||||
# - new maintainer.
|
||||
# - update for v0.13.72.
|
||||
# - switch to cmake.
|
||||
# - make slack-desc more concise.
|
||||
|
||||
# Note: 0.13.71 had the file "usr/lib64/pkgconfig/zzip-zlib-config.pc",
|
||||
# and 0.13.72 doesn't have it. Dependees are alephone and milkytracker [*].
|
||||
# These build correctly without this .pc file. If anyone has issues
|
||||
# with new builds because of this, please contact me.
|
||||
# [*] desmume had zziplib listed in REQUIRES, but it doesn't actually
|
||||
# use it (maybe it did at one time?).
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=zziplib
|
||||
VERSION=${VERSION:-0.13.71}
|
||||
BUILD=${BUILD:-2}
|
||||
VERSION=${VERSION:-0.13.72}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -38,9 +51,6 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
|
@ -73,39 +83,36 @@ rm -rf $PRGNAM-$VERSION
|
|||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
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 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
|
||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--mandir=/usr/man \
|
||||
--enable-static=no \
|
||||
--enable-sdl \
|
||||
--without-debug \
|
||||
--disable-dependency-tracking \
|
||||
--build=$ARCH-slackware-linux
|
||||
# 20230604 bkw: switch to cmake, because upstream is phasing out
|
||||
# autotools builds. the next zziplib release probably won't support
|
||||
# autotools at all.
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
# -DZZIPTEST=OFF prevents cmake from doing network access, and makes
|
||||
# no difference in the package.
|
||||
|
||||
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
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DZZIPTEST=OFF \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||
-DCMAKE_INSTALL_MANDIR=/usr/man \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install/strip DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
find $PKG/usr/man -type f ! -perm 644 -exec chmod 0644 '{}' \;
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
gzip -9 $PKG/usr/man/man*/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
ChangeLog COPYING* README TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
rm -f $PKG/usr/lib*/*.la
|
||||
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKGDOC
|
||||
cp -a ChangeLog COPYING* README* TODO $PKGDOC
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="zziplib"
|
||||
VERSION="0.13.71"
|
||||
HOMEPAGE="http://zziplib.sourceforge.net/zzip-index.html"
|
||||
DOWNLOAD="https://github.com/gdraheim/zziplib/archive/v0.13.71/zziplib-0.13.71.tar.gz"
|
||||
MD5SUM="1aa094186cf2222e4cda1b91b8fb8f60"
|
||||
VERSION="0.13.72"
|
||||
HOMEPAGE="https://zziplib.sourceforge.net/"
|
||||
DOWNLOAD="https://github.com/gdraheim/zziplib/archive/v0.13.72/zziplib-0.13.72.tar.gz"
|
||||
MD5SUM="43555e7eafc5c1a1178a35e716c40500"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Larry Hajali"
|
||||
EMAIL="larryhaja[at]gmail[dot]com"
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="urchlay@slackware.uk"
|
||||
|
|
Loading…
Reference in New Issue