wok rev 25614

Add libslirp
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 03 11:59:41 2023 +0000 (15 months ago)
parents be3de88419e0
children f5d6abddcecb
files libslirp-dev/receipt libslirp/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libslirp-dev/receipt	Thu Aug 03 11:59:41 2023 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libslirp-dev"
     1.7 +VERSION="4.7.0"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="A user-mode networking library used by virtual machines, development files."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="BSD"
    1.12 +WEB_SITE="https://gitlab.freedesktop.org/slirp/libslirp"
    1.13 +
    1.14 +WANTED="libslirp"
    1.15 +DEPENDS="libslirp pkgconfig"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	mkdir -p $fs/usr/lib/pkgconfig $fs/usr/include
    1.21 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.22 +	cp -a $install/usr/include $fs/usr
    1.23 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libslirp/receipt	Thu Aug 03 11:59:41 2023 +0000
     2.3 @@ -0,0 +1,37 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="libslirp"
     2.7 +VERSION="4.7.0"
     2.8 +CATEGORY="system-tools"
     2.9 +SHORT_DESC="A user-mode networking library used by virtual machines."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE="BSD"
    2.12 +WEB_SITE="https://gitlab.freedesktop.org/slirp/libslirp"
    2.13 +
    2.14 +TARBALL="$PACKAGE-v$VERSION.tar.gz"
    2.15 +WGET_URL="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v$VERSION/$TARBALL"
    2.16 +
    2.17 +DEPENDS="glib"
    2.18 +BUILD_DEPENDS="glib-dev meson"
    2.19 +
    2.20 +# What is the latest version available today?
    2.21 +current_version()
    2.22 +{
    2.23 +	wget -O - https://gitlab.freedesktop.org/slirp/libslirp/-/releases 2>/dev/null | \
    2.24 +	sed '/libslirp-v[0-9]/!d;s|.*libslirp-v||;s|<.*||;q'
    2.25 +}
    2.26 +
    2.27 +# Rules to configure and make the package.
    2.28 +compile_rules()
    2.29 +{
    2.30 +	sed -i 's|libslirp.h"|&\n#include "glib-object.h"|' src/slirp.h
    2.31 +	meson build --prefix=/usr
    2.32 +	ninja -C build install
    2.33 +}
    2.34 +
    2.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.36 +genpkg_rules()
    2.37 +{
    2.38 +	mkdir -p $fs/usr/lib
    2.39 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.40 +}