commit 60cb6307d8ce861c82082c840912ae9fed2af18b Author: EnumDev Date: Sat Oct 11 16:08:27 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/check-version.sh b/check-version.sh new file mode 100644 index 0000000..cd89e29 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Ignore this package +echo "ignore" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..885b8ed --- /dev/null +++ b/pkg.info @@ -0,0 +1,27 @@ +name: libsoup2 +description: HTTP client/server library for GNOME +version: 2.74.3 +revision: 1 +url: https://wiki.gnome.org/Projects/libsoup +license: LGPL2.1-or-later +architecture: any +type: source +depends: + - brotli + - glib-networking + - glib + - glibc + - krb5 + - libpsl + - libxml2 + - sqlite + - zlib +make_depends: + - gobject-introspection + - meson + - vala +downloads: + - url: https://gitlab.gnome.org/GNOME/libsoup/-/archive/${BPM_PKG_VERSION}/libsoup-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 2e7a1313c2223c7e70cda90a8c02c679ab2bf3935c07b5bb028a9b5550411b96 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..043251f --- /dev/null +++ b/source.sh @@ -0,0 +1,25 @@ +# 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 check function is executed in the source directory +# This function is used to run tests to verify the package has been compiled correctly +check() { + meson test -C build --print-errorlogs +} + +# 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"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libsoup2/COPYING +}