diff options
Diffstat (limited to 'libraries/libaec')
-rw-r--r-- | libraries/libaec/README | 13 | ||||
-rw-r--r-- | libraries/libaec/libaec.SlackBuild | 38 | ||||
-rw-r--r-- | libraries/libaec/libaec.info | 6 | ||||
-rw-r--r-- | libraries/libaec/slack-desc | 2 |
4 files changed, 36 insertions, 23 deletions
diff --git a/libraries/libaec/README b/libraries/libaec/README index ce12cde722..7b877fef1f 100644 --- a/libraries/libaec/README +++ b/libraries/libaec/README @@ -1,9 +1,10 @@ -Libaec provides fast lossless compression of 1 up to 32 bit wide signed or -unsigned integers (samples). The library achieves best results for low entropy -data as often encountered in space imaging instrument data or numerical model -output from weather or climate simulations. While floating point -representations are not directly supported, they can also be efficiently coded -by grouping exponents and mantissa. +Libaec provides fast lossless compression of 1 up to 32 bit wide +signed or unsigned integers (samples). The library achieves best +results for low entropy data as often encountered in space imaging +instrument data or numerical model output from weather or climate +simulations. While floating point representations are not directly +supported, they can also be efficiently coded by grouping exponents +and mantissa. Libaec implements Golomb-Rice coding as defined in the Space Data System Standard documents [121.0-B-2][1] and [120.0-G-2][2]. diff --git a/libraries/libaec/libaec.SlackBuild b/libraries/libaec/libaec.SlackBuild index f90b96c2a6..4f7037615a 100644 --- a/libraries/libaec/libaec.SlackBuild +++ b/libraries/libaec/libaec.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libaec -# Copyright 2020 Gregory J. L. Tourte <artourter@gmail.com> +# Copyright 2020-2024 Gregory J. L. Tourte <artourter@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=libaec -VERSION=${VERSION:-1.0.4} +VERSION=${VERSION:-1.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -66,10 +76,8 @@ 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 {} \; + -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + mkdir -p build ( cd build @@ -84,15 +92,19 @@ mkdir -p build make install DESTDIR=$PKG ) +# Remove static libs +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.a + +# Move cmake files to more sensible location +mkdir $PKG/usr/lib${LIBDIRSUFFIX}/cmake +mv $PKG/usr/cmake $PKG/usr/lib${LIBDIRSUFFIX}/cmake/${PRGNAM} + 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 -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS CHANGELOG.md INSTALL README.md README.SZIP THANKS doc/patent.txt \ + AUTHORS CHANGELOG.md LICENSE.txt README.md README.SZIP THANKS doc/patent.txt \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -100,4 +112,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/libraries/libaec/libaec.info b/libraries/libaec/libaec.info index bb9ef1cdcf..ff22009b11 100644 --- a/libraries/libaec/libaec.info +++ b/libraries/libaec/libaec.info @@ -1,8 +1,8 @@ PRGNAM="libaec" -VERSION="1.0.4" +VERSION="1.1.3" HOMEPAGE="https://gitlab.dkrz.de/k202009/libaec" -DOWNLOAD="https://gitlab.dkrz.de/k202009/libaec/uploads/ea0b7d197a950b0c110da8dfdecbb71f/libaec-1.0.4.tar.gz" -MD5SUM="3635461bbb8d81a95049f7d6821fd4f0" +DOWNLOAD="https://gitlab.dkrz.de/k202009/libaec/uploads/dc5fc087b645866c14fa22320d91fb27/libaec-1.1.3.tar.gz" +MD5SUM="5df72a762cec7e9de1140d96e63153dc" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/libraries/libaec/slack-desc b/libraries/libaec/slack-desc index 991de83c37..8d3b6ceb9d 100644 --- a/libraries/libaec/slack-desc +++ b/libraries/libaec/slack-desc @@ -15,5 +15,5 @@ libaec: instrument data or numerical model output from weather or climate libaec: simulations. While floating point representations are not directly libaec: supported, they can also be efficiently coded by grouping exponents libaec: and mantissa. -libaec: +libaec: libaec: Libaec can replace SZIP. |