diff options
Diffstat (limited to 'libraries/libqcow')
-rw-r--r-- | libraries/libqcow/README | 13 | ||||
-rw-r--r-- | libraries/libqcow/libqcow.SlackBuild | 38 | ||||
-rw-r--r-- | libraries/libqcow/libqcow.info | 6 |
3 files changed, 35 insertions, 22 deletions
diff --git a/libraries/libqcow/README b/libraries/libqcow/README index 7c12418d27..a47b6ee5cf 100644 --- a/libraries/libqcow/README +++ b/libraries/libqcow/README @@ -1,20 +1,21 @@ libqcow (libYAL QEMU QCOW image library) -Library and tooling to access the QEMU Copy-On-Write (QCOW) image format. +Library and tooling to access the QEMU Copy-On-Write (QCOW) image +format. Read supported QCOW formats: version 1 - version 2 - version 3 (as of version 20141201) + version 2 + version 3 (as of version 20141201) Supported QCOW format features: compression - encryption + encryption QCOW format features not supported at the moment: backing file-based snapshots - in-image snapshots + in-image snapshots Work in progress: Python bindings - Dokan library support + Dokan library support Thread-safety in file API functions Planned: Python 3 support diff --git a/libraries/libqcow/libqcow.SlackBuild b/libraries/libqcow/libqcow.SlackBuild index 90c3df046e..bdfe8c2142 100644 --- a/libraries/libqcow/libqcow.SlackBuild +++ b/libraries/libqcow/libqcow.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libqcow - -# Copyright 2014-2019 Barry J. Grundy (bgrundy<at>linuxleo.com) +# +# Copyright 2014-2023 Barry J. Grundy (bgrundy<at>linuxleo.com) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,30 +21,40 @@ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Updated v20221124 July 2023 -# Updated v20181227 Jan 2019 Barry J. Grundy +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libqcow -VERSION=${VERSION:-20181227} +VERSION=${VERSION:-20221124} STATUS=${STATUS:-alpha} BUILD=${BUILD:-1} 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 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} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -63,7 +73,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$STATUS-$VERSION.tar.gz +tar xvf $CWD/"$PRGNAM"-"$STATUS"-"$VERSION".tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -81,7 +91,7 @@ CXXFLAGS="$SLKCFLAGS -std=gnu89" \ --localstatedir=/var \ --mandir=/usr/man \ --disable-static \ - --enable-python \ + --enable-python3 \ --build=$ARCH-slackware-linux make @@ -91,11 +101,13 @@ 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 -ar ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION +cp -ar ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + 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/libqcow/libqcow.info b/libraries/libqcow/libqcow.info index c8f83c8e8f..427b02f8d1 100644 --- a/libraries/libqcow/libqcow.info +++ b/libraries/libqcow/libqcow.info @@ -1,8 +1,8 @@ PRGNAM="libqcow" -VERSION="20181227" +VERSION="20221124" HOMEPAGE="https://github.com/libyal/libqcow" -DOWNLOAD="https://github.com/libyal/libqcow/releases/download/20181227/libqcow-alpha-20181227.tar.gz" -MD5SUM="79ebef2ac8d47e6497a51a19358b27a0" +DOWNLOAD="https://linuxleo.com/Source/libqcow-alpha-20221124.tar.gz" +MD5SUM="a54e46797d026027dc33155104c5ecea" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |