Initial commit

This commit is contained in:
2025-10-02 14:26:24 +03:00
commit 3eaa498f0c
3 changed files with 38 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Exclude bpm archives
*.bpm
+17
View File
@@ -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
+19
View File
@@ -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
}