SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libslirp"

# SliTaz package receipt.

PACKAGE="libslirp"
VERSION="4.7.0"
CATEGORY="system-tools"
SHORT_DESC="A user-mode networking library used by virtual machines."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://gitlab.freedesktop.org/slirp/libslirp"

TARBALL="$PACKAGE-v$VERSION.tar.gz"
WGET_URL="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v$VERSION/$TARBALL"

DEPENDS="glib gcc83-lib-base"
BUILD_DEPENDS="glib-dev meson"

# What is the latest version available today?
current_version()
{
    wget -O - https://gitlab.freedesktop.org/slirp/libslirp/-/releases 2>/dev/null | \
    sed '/libslirp-v[0-9]/!d;s|.*libslirp-v||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|libslirp.h"|&\n#include "glib-object.h"|' src/slirp.h
    meson build --prefix=/usr
    ninja -C build install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
}
5935 packages and 845883 files in cooking database (Sun Jun 2 00:46:56 2024)