commit 3eaa498f0c09cd0cdeaf45f81e77410547a9f0de Author: EnumDev Date: Thu Oct 2 14:26:24 2025 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..3f76717 --- /dev/null +++ b/pkg.info @@ -0,0 +1,17 @@ +name: libslirp +description: General purpose TCP-IP emulator +version: 4.9.1 +revision: 1 +url: https://gitlab.freedesktop.org/slirp/libslirp +license: BSD-3-Clause +architecture: any +type: source +depends: + - glib +make_depends: + - meson +downloads: + - url: https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v${BPM_PKG_VERSION}/libslirp-v${BPM_PKG_VERSION}.tar.gz + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: 3970542143b7c11e6a09a4d2b50f30a133473c41f15ed0bdcc3b7a1c450d9a5c diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..93a8eed --- /dev/null +++ b/source.sh @@ -0,0 +1,19 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE +# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + meson setup build --prefix=/usr + meson compile -C build +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + meson install -C build --destdir="$BPM_OUTPUT" + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYRIGHT "$BPM_OUTPUT"/usr/share/licenses/libslirp/COPYRIGHT +}