diff options
Diffstat (limited to 'system/zopfli')
-rw-r--r-- | system/zopfli/README | 24 | ||||
-rw-r--r-- | system/zopfli/zopfli.SlackBuild | 26 | ||||
-rw-r--r-- | system/zopfli/zopfli.info | 2 |
3 files changed, 31 insertions, 21 deletions
diff --git a/system/zopfli/README b/system/zopfli/README index 1bdf00f886..7550b48840 100644 --- a/system/zopfli/README +++ b/system/zopfli/README @@ -1,18 +1,18 @@ -Zopfli Compression Algorithm is a compression library programmed in C to perform -very good, but slow, deflate or zlib compression. +Zopfli Compression Algorithm is a compression library programmed in C +to perform very good, but slow, deflate or zlib compression. -The basic function to compress data is ZopfliCompress in zopfli.h. Use the -ZopfliOptions object to set parameters that affect the speed and compression. -Use the ZopfliInitOptions function to place the default values in the -ZopfliOptions first. +The basic function to compress data is ZopfliCompress in zopfli.h. Use +the ZopfliOptions object to set parameters that affect the speed and +compression. Use the ZopfliInitOptions function to place the default +values in the ZopfliOptions first. -ZopfliCompress supports deflate, gzip and zlib output format with a parameter. -To support only one individual format, you can instead use ZopfliDeflate in -deflate.h, ZopfliZlibCompress in zlib_container.h or ZopfliGzipCompress in -gzip_container.h. +ZopfliCompress supports deflate, gzip and zlib output format with a +parameter. To support only one individual format, you can instead use +ZopfliDeflate in deflate.h, ZopfliZlibCompress in zlib_container.h or +ZopfliGzipCompress in gzip_container.h. -This library can only compress, not decompress. Existing zlib or deflate -libraries can decompress the data. +This library can only compress, not decompress. Existing zlib or +deflate libraries can decompress the data. Zopfli Compression Algorithm was created by Lode Vandevenne and Jyrki Alakuijala, based on an algorithm by Jyrki Alakuijala. diff --git a/system/zopfli/zopfli.SlackBuild b/system/zopfli/zopfli.SlackBuild index a4cc1a214e..300e621878 100644 --- a/system/zopfli/zopfli.SlackBuild +++ b/system/zopfli/zopfli.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Zopfli @@ -22,20 +22,30 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20240402 bkw: Modified by SlackBuilds.org, BUILD=2: +# - strip binary. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=zopfli VERSION=${VERSION:-1.0.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -51,14 +61,14 @@ cd $PRGNAM-$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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} + make mkdir -p $PKG/usr/bin $PKG/usr/doc/$PRGNAM-$VERSION -cp ./zopfli $PKG/usr/bin +install -s -m0755 ./zopfli $PKG/usr/bin cp CONTRIBUTORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -67,4 +77,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/zopfli/zopfli.info b/system/zopfli/zopfli.info index 43a262d989..94669f5e6c 100644 --- a/system/zopfli/zopfli.info +++ b/system/zopfli/zopfli.info @@ -1,7 +1,7 @@ PRGNAM="zopfli" VERSION="1.0.0" HOMEPAGE="https://github.com/google/zopfli" -DOWNLOAD="https://github.com/google/zopfli/archive/zopfli-1.0.0.tar.gz" +DOWNLOAD="https://github.com/google/zopfli/archive/zopfli-1.0.0/zopfli-zopfli-1.0.0.tar.gz" MD5SUM="22321d8350fafa2d3290544317b6be83" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |