diff options
Diffstat (limited to 'libraries/libyang')
-rw-r--r-- | libraries/libyang/libyang.SlackBuild | 33 | ||||
-rw-r--r-- | libraries/libyang/libyang.info | 8 |
2 files changed, 23 insertions, 18 deletions
diff --git a/libraries/libyang/libyang.SlackBuild b/libraries/libyang/libyang.SlackBuild index 7cafc85c8c..a70a068896 100644 --- a/libraries/libyang/libyang.SlackBuild +++ b/libraries/libyang/libyang.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libyang -# Copyright 2019 Thibaut Notteboom, Paris, FRANCE +# Copyright 2019-2023 Thibaut Notteboom, Paris, FRANCE # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# 20200103 bkw: Modified by Slackbuilds.org: VERSION can't contain hyphens. +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libyang -VERSION=${VERSION:-0.16_r3} +VERSION=${VERSION:-2.1.128} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} - -SRCVER=${VERSION/_/-} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -39,7 +38,11 @@ if [ -z "$ARCH" ]; then 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} @@ -53,6 +56,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -63,9 +69,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRCVER -tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz -cd $PRGNAM-$SRCVER +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 \ @@ -81,15 +87,14 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ -DCMAKE_INSTALL_MANDIR=/usr/man \ - -DENABLE_LYD_PRIV=ON \ - -DENABLE_BUILD_TESTS=ON \ -DCMAKE_BUILD_TYPE=Release .. make - make test make install DESTDIR=$PKG cd .. +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + 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 @@ -106,4 +111,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/libyang/libyang.info b/libraries/libyang/libyang.info index 8fe1081f1e..7647c8c7e3 100644 --- a/libraries/libyang/libyang.info +++ b/libraries/libyang/libyang.info @@ -1,10 +1,10 @@ PRGNAM="libyang" -VERSION="0.16_r3" +VERSION="2.1.128" HOMEPAGE="https://github.com/CESNET/libyang" -DOWNLOAD="https://github.com/CESNET/libyang/archive/v0.16-r3/libyang-0.16-r3.tar.gz" -MD5SUM="a7cc2cc10de2ec92a51eee69c98566fa" +DOWNLOAD="https://github.com/CESNET/libyang/archive/v2.1.128/libyang-2.1.128.tar.gz" +MD5SUM="c6172f66af6cfe052b88f91bd8bbd0b5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="cmocka" +REQUIRES="cmocka graphviz" MAINTAINER="Thibaut Notteboom" EMAIL="thibaut.notteboom@gmail.com" |