diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-05 05:58:53 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-10 14:01:23 +0700 |
commit | 41a86e2c850f06387d53475bfab88997d565bc26 (patch) | |
tree | d05a7b2e5fee7f078536679251cc3e1f1f6207db | |
parent | 5fad810a402b605762d5dee72cc1409e82293c01 (diff) |
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>
-rw-r--r-- | libraries/zziplib/README | 6 | ||||
-rw-r--r-- | libraries/zziplib/slack-desc | 16 | ||||
-rw-r--r-- | libraries/zziplib/zziplib.SlackBuild | 85 | ||||
-rw-r--r-- | libraries/zziplib/zziplib.info | 12 |
4 files changed, 66 insertions, 53 deletions
diff --git a/libraries/zziplib/README b/libraries/zziplib/README index 700828ec2380..f2f769038e3d 100644 --- a/libraries/zziplib/README +++ b/libraries/zziplib/README @@ -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 diff --git a/libraries/zziplib/slack-desc b/libraries/zziplib/slack-desc index 581be27a0205..6d90b3c7a98a 100644 --- a/libraries/zziplib/slack-desc +++ b/libraries/zziplib/slack-desc @@ -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: diff --git a/libraries/zziplib/zziplib.SlackBuild b/libraries/zziplib/zziplib.SlackBuild index 4b42e735e4f8..00f911ffac44 100644 --- a/libraries/zziplib/zziplib.SlackBuild +++ b/libraries/zziplib/zziplib.SlackBuild @@ -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 {} \; - -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 - -make -make install DESTDIR=$PKG - -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 - -find $PKG/usr/man -type f ! -perm 644 -exec chmod 0644 '{}' \; -find $PKG/usr/man -type f -exec gzip -9 {} \; - -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 +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + + +# 20230604 bkw: switch to cmake, because upstream is phasing out +# autotools builds. the next zziplib release probably won't support +# autotools at all. + +# -DZZIPTEST=OFF prevents cmake from doing network access, and makes +# no difference in the package. + +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 .. + +gzip -9 $PKG/usr/man/man*/* + +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 diff --git a/libraries/zziplib/zziplib.info b/libraries/zziplib/zziplib.info index 2d9477d9c9f7..53956dd123a0 100644 --- a/libraries/zziplib/zziplib.info +++ b/libraries/zziplib/zziplib.info @@ -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" |