wok view libslirp/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | fb496db11d55 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libslirp"
4 VERSION="4.7.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="A user-mode networking library used by virtual machines."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://gitlab.freedesktop.org/slirp/libslirp"
11 TARBALL="$PACKAGE-v$VERSION.tar.gz"
12 WGET_URL="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v$VERSION/$TARBALL"
14 DEPENDS="glib gcc83-lib-base"
15 BUILD_DEPENDS="glib-dev meson"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://gitlab.freedesktop.org/slirp/libslirp/-/releases 2>/dev/null | \
21 sed '/libslirp-v[0-9]/!d;s|.*libslirp-v||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|libslirp.h"|&\n#include "glib-object.h"|' src/slirp.h
28 meson build --prefix=/usr
29 ninja -C build install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 }