From 28b26b718cd5fcccc2487a2076f10d0d8408b188 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 4 Apr 2026 20:32:35 +0300 Subject: [PATCH] Update package version to 2.3.0 --- pkg.info | 17 ++++++++++++++--- source.sh | 21 ++++----------------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/pkg.info b/pkg.info index f39c917..6e215a1 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,20 @@ name: wl-clipboard description: Command-line copy/paste utilities for Wayland -version: 2.2.1 +version: 2.3.0 +revision: 1 url: https://github.com/bugaevc/wl-clipboard license: GPL3-or-later +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["wayland"] -make_depends: ["meson","wayland-protocols"] type: source +depends: + - wayland +make_depends: + - meson + - wayland-protocols +downloads: + - url: https://github.com/bugaevc/wl-clipboard/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: b4dc560973f0cd74e02f817ffa2fd44ba645a4f1ea94b7b9614dacc9f895f402 diff --git a/source.sh b/source.sh index 41e48c2..329d786 100644 --- a/source.sh +++ b/source.sh @@ -2,31 +2,18 @@ # 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/bugaevc/wl-clipboard/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz" -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 --libdir=/usr/lib .. - ninja + meson setup build --prefix=/usr --libdir=/usr/lib + 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() { - 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/wl-clipboard/COPYING }