diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-04-16 20:06:30 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-04-17 10:19:28 +0200 |
commit | 4e661a400bdd0b29f6e24d3071b875dc4a06c81d (patch) | |
tree | fdfc76fa0575a588c17f77ff969b00d139f6512c /Ports/libslirp | |
parent | f0dde6236d8fbd1ae17e33f868df139467872768 (diff) | |
download | serenity-4e661a400bdd0b29f6e24d3071b875dc4a06c81d.zip |
Ports: Add libslirp version 4.7.0
The slirp submodule was removed from QEMU in version 7.2, running
Serenity in QEMU on a Serenity host could fail without this one if
running with network enabled.
For more information on the removal of the slirp submodule see the
following link: https://wiki.qemu.org/ChangeLog/7.2#Removal_of_the_%22slirp%22_submodule_(affects_%22-netdev_user%22)
Diffstat (limited to 'Ports/libslirp')
-rwxr-xr-x | Ports/libslirp/package.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Ports/libslirp/package.sh b/Ports/libslirp/package.sh new file mode 100755 index 0000000000..8ae082561a --- /dev/null +++ b/Ports/libslirp/package.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='libslirp' +version='4.7.0' +workdir="libslirp-v${version}" +files="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v${version}/libslirp-v${version}.tar.gz libslirp-v${version}.tar.xz 9398f0ec5a581d4e1cd6856b88ae83927e458d643788c3391a39e61b75db3d3b" +auth_type='sha256' +useconfigure='true' +configopts=("--cross-file=${SERENITY_BUILD_DIR}/meson-cross-file.txt") +depends=('glib') + +configure() { + run meson _build "${configopts[@]}" +} + +build() { + run ninja -C _build +} + +install() { + export DESTDIR="${SERENITY_INSTALL_ROOT}" + run meson install -C _build +} |