wok view libslirp/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (3 months 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 }