diff options
Diffstat (limited to 'libraries/libslirp')
-rw-r--r-- | libraries/libslirp/changelog | 19 | ||||
-rw-r--r-- | libraries/libslirp/libslirp.SlackBuild | 44 | ||||
-rw-r--r-- | libraries/libslirp/libslirp.info | 8 |
3 files changed, 38 insertions, 33 deletions
diff --git a/libraries/libslirp/changelog b/libraries/libslirp/changelog deleted file mode 100644 index 75f35d507e..0000000000 --- a/libraries/libslirp/changelog +++ /dev/null @@ -1,19 +0,0 @@ -Changelog for libslirp SlackBuild Script --------------------------------------------------------------------- - -03/09/2022: - -Added to slackbuilds.org - -17/12/2022: - -Issues in the script were fixed. - -29/04/2023: - -updated to version 4.7.0 -Valgrind is an optional dependency for libslirp - -16/05/2024: - -updated to version 4.8.0 diff --git a/libraries/libslirp/libslirp.SlackBuild b/libraries/libslirp/libslirp.SlackBuild index 36089f4bb3..d9c7d208c1 100644 --- a/libraries/libslirp/libslirp.SlackBuild +++ b/libraries/libslirp/libslirp.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libslirp -# Copyright 2022-2024 Vijay Marcel +# Copyright 2022-2025 Vijay Marcel # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +22,26 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Changelog for libslirp SlackBuild Script +# ---------------------------------------------------------------------------------- + +# 03/09/2022: Added to slackbuilds.org +# 17/12/2022: Issues in the script were fixed. +# 29/04/2023: updated to version 4.7. Valgrind is an optional dependency for libslirp +# 16/05/2024: updated to version 4.8.0 +# 31/01/2025: updated to version 4.9.0 +# 10/06/2025: updated to version 4.9.1 + +# ----------------------------------------------------------------------------------- + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libslirp -VERSION=${VERSION:-4.8.0} +VERSION=${VERSION:-4.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +nprocr=$(expr $(nproc) + 1) if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -79,17 +92,28 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages -meson build -cd build -meson configure -Dprefix=/usr -DESTDIR=$PKG ninja install -cd .. +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" meson setup build $TMP/$PRGNAM-v$VERSION \ + -Dprefix=/usr \ + -Dlibdir=/usr/lib${LIBDIRSUFFIX} \ + -Dlocalstatedir=/var \ + -Dmandir=/usr/man \ + -Dsysconfdir=/etc \ + -Dincludedir=/usr/include \ + -Ddatadir=/usr/share \ + -Dsbindir=/usr/sbin \ + -Dlibexecdir=/usr/libexec \ + -Dbuildtype=release \ + -Dstrip=true + +ninja -j$nprocr -C build +DESTDIR=$PKG ninja -C build install # Don't ship .la files: -rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la +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 --remove-section=.comment --remove-section=.note 2> /dev/null || true diff --git a/libraries/libslirp/libslirp.info b/libraries/libslirp/libslirp.info index 1dbe155bed..a3133040c0 100644 --- a/libraries/libslirp/libslirp.info +++ b/libraries/libslirp/libslirp.info @@ -1,10 +1,10 @@ PRGNAM="libslirp" -VERSION="4.8.0" +VERSION="4.9.1" HOMEPAGE="https://gitlab.freedesktop.org/slirp/libslirp" -DOWNLOAD="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v4.8.0/libslirp-v4.8.0.tar.gz" -MD5SUM="442988e931075fc45ed84c5ffc391073" +DOWNLOAD="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v4.9.1/libslirp-v4.9.1.tar.gz" +MD5SUM="9732ac0d2caf4fe1db76dd96c9957327" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="python3-meson-opt" MAINTAINER="Vijay Marcel" EMAIL="vijaymarcel@outlook.com" |