summaryrefslogtreecommitdiffstats
path: root/libraries/libyang
diff options
context:
space:
mode:
author Thibaut Notteboom <thibaut.notteboom@gmail.com>2023-12-04 18:50:50 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-12-04 19:02:42 +0700
commit3b141af56b1293788e41b65f53002208a07b6124 (patch)
tree66bf6f4e002d934cb2e1a3ada31cbacaf8870abb /libraries/libyang
parent60dd555b7e22b537dead6c8f95d2de2da7841118 (diff)
downloadslackbuilds-3b141af56b1293788e41b65f53002208a07b6124.tar.gz
slackbuilds-3b141af56b1293788e41b65f53002208a07b6124.tar.xz
libraries/libyang: Updated for version 2.1.128.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libyang')
-rw-r--r--libraries/libyang/libyang.SlackBuild15
-rw-r--r--libraries/libyang/libyang.info8
2 files changed, 11 insertions, 12 deletions
diff --git a/libraries/libyang/libyang.SlackBuild b/libraries/libyang/libyang.SlackBuild
index f89b28ebe6..a70a068896 100644
--- a/libraries/libyang/libyang.SlackBuild
+++ b/libraries/libyang/libyang.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libyang
-# Copyright 2019-2020 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
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libyang
-VERSION=${VERSION:-1.0.167}
+VERSION=${VERSION:-2.1.128}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -59,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=""
@@ -87,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
diff --git a/libraries/libyang/libyang.info b/libraries/libyang/libyang.info
index e66a32012e..7647c8c7e3 100644
--- a/libraries/libyang/libyang.info
+++ b/libraries/libyang/libyang.info
@@ -1,10 +1,10 @@
PRGNAM="libyang"
-VERSION="1.0.167"
+VERSION="2.1.128"
HOMEPAGE="https://github.com/CESNET/libyang"
-DOWNLOAD="https://github.com/CESNET/libyang/archive/v1.0.167/libyang-1.0.167.tar.gz"
-MD5SUM="686c11a19dd62e1cea863c67a8b3e125"
+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"