diff options
Diffstat (limited to 'libraries/libversion')
-rw-r--r-- | libraries/libversion/README | 6 | ||||
-rw-r--r-- | libraries/libversion/libversion.SlackBuild | 23 | ||||
-rw-r--r-- | libraries/libversion/libversion.info | 6 |
3 files changed, 23 insertions, 12 deletions
diff --git a/libraries/libversion/README b/libraries/libversion/README index 396b54a0f0..e751f02468 100644 --- a/libraries/libversion/README +++ b/libraries/libversion/README @@ -1,3 +1,3 @@ -libversion is an advanced version string comparison library used by the -Repology project. It is capable of comparing version strings even if they are -written in different formats. +libversion is an advanced version string comparison library used by +the Repology project. It is capable of comparing version strings even +if they are written in different formats. diff --git a/libraries/libversion/libversion.SlackBuild b/libraries/libversion/libversion.SlackBuild index a1353ac193..595cd1875d 100644 --- a/libraries/libversion/libversion.SlackBuild +++ b/libraries/libversion/libversion.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libversion -# Copyright 2017-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2017-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # 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=libversion -VERSION=${VERSION:-2.9.1} +VERSION=${VERSION:-3.0.1} 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} @@ -71,6 +81,7 @@ find -L . \ mkdir -p build cd build + export "PATH=/opt/cmake-202x/bin:$PATH" cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -88,7 +99,7 @@ fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - CHANGES.md COPYING README.md TODO.md \ + CHANGES.md COPYING README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -96,4 +107,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/libversion/libversion.info b/libraries/libversion/libversion.info index 60fbb16516..6cd5ce9099 100644 --- a/libraries/libversion/libversion.info +++ b/libraries/libversion/libversion.info @@ -1,8 +1,8 @@ PRGNAM="libversion" -VERSION="2.9.1" +VERSION="3.0.1" HOMEPAGE="https://github.com/repology/libversion" -DOWNLOAD="https://github.com/repology/libversion/archive/2.9.1/libversion-2.9.1.tar.gz" -MD5SUM="8c23275bc0e57b7958a696d533266f8b" +DOWNLOAD="https://github.com/repology/libversion/archive/3.0.1/libversion-3.0.1.tar.gz" +MD5SUM="b519c52e6fe6a59138d9182aff437b1b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |