Update package version to 2.3.0

This commit is contained in:
2026-04-04 20:32:35 +03:00
parent a22869b4c1
commit 28b26b718c
2 changed files with 18 additions and 20 deletions
+14 -3
View File
@@ -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:
- [email protected]
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
+4 -17
View File
@@ -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
}