From 9e34b874facccfb76bd6bf01e4af773881cd0fb4 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 29 Mar 2026 20:33:34 +0300 Subject: [PATCH] Update package version to 0.11.1 --- pkg.info | 20 +++++++++++++++++--- source.sh | 26 ++++++-------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/pkg.info b/pkg.info index 32ed4c7..c3e3e99 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,23 @@ name: bubblewrap description: Unprivileged sandboxing tool -version: 0.11.0 +version: 0.11.1 +revision: 1 url: https://github.com/containers/bubblewrap license: LGPL2-or-later +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["gcc-libs", "glibc", "libcap"] -make_depends: ["docbook-xsl-nons", "libxslt", "meson"] type: source +depends: + - gcc-libs + - glibc + - libcap +make_depends: + - docbook-xsl-nons + - libxslt + - meson +downloads: + - url: https://github.com/containers/bubblewrap/releases/download/v${BPM_PKG_VERSION}/bubblewrap-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: c1b7455a1283b1295879a46d5f001dfd088c0bb0f238abb5e128b3583a246f71 diff --git a/source.sh b/source.sh index c0a4d77..aac9227 100644 --- a/source.sh +++ b/source.sh @@ -2,39 +2,25 @@ # 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 -DOWNLOAD="https://github.com/containers/bubblewrap/releases/download/v${BPM_PKG_VERSION}/bubblewrap-${BPM_PKG_VERSION}.tar.xz" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir build - cd build - - meson setup --prefix=/usr --buildtype=release .. - ninja + meson setup build --prefix=/usr --buildtype=release + 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() { - cd build - sed 's@symlink usr/lib64@ro-bind-try /lib64@' -i ../tests/libtest.sh - ninja test + sed 's@symlink usr/lib64@ro-bind-try /lib64@' -i tests/libtest.sh + meson test -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() { - cd build - DESTDIR="$BPM_OUTPUT" ninja install + meson install -C build --destdir="$BPM_OUTPUT" + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/bubblewrap/COPYING }