Switch to new download format and update source.sh script

This commit is contained in:
2025-11-02 18:39:15 +02:00
parent 81b8bff5fd
commit ef3ad147f8
2 changed files with 28 additions and 16 deletions
+22 -3
View File
@@ -1,10 +1,29 @@
name: river name: river
description: A dynamic tiling Wayland compositor description: A dynamic tiling Wayland compositor
version: 0.3.12 version: 0.3.12
revision: 2
url: https://codeberg.org/river/river url: https://codeberg.org/river/river
license: GPL3-only license: GPL3-only
architecture: any architecture: any
depends: ["glibc","libevdev","libinput","libxkbcommon","mesa","pixman","wayland","wlroots","xorg-xwayland"]
optional_depends: ["polkit"]
make_depends: ["scdoc","wayland-protocols","zig"]
type: source type: source
depends:
- glibc
- libevdev
- libinput
- libxkbcommon
- mesa
- pixman
- wayland
- wlroots
- xorg-xwayland
optional_depends:
- polkit
make_depends:
- scdoc
- wayland-protocols
- zig
downloads:
- url: https://codeberg.org/river/river/releases/download/v${BPM_PKG_VERSION}/river-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 06376cc7b38eb2307030f7ec0954db119d83c55a5226abe4c363c2dbec6f40c3
+6 -13
View File
@@ -2,16 +2,6 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # 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 # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://codeberg.org/river/river/releases/download/v${BPM_PKG_VERSION}/river-${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 # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
@@ -29,10 +19,13 @@ check() {
package() { package() {
cp -a build/* -t "$BPM_OUTPUT" cp -a build/* -t "$BPM_OUTPUT"
install -Dm644 contrib/river.desktop "$BPM_OUTPUT"/usr/share/wayland-sessions/river.desktop # Install configuration file
install -d "$BPM_OUTPUT"/usr/share/river install -Dm755 example/init "$BPM_OUTPUT"/usr/share/river/example/init
cp -a example -t "$BPM_OUTPUT"/usr/share/river
# Install session file
install -Dm644 contrib/river.desktop "$BPM_OUTPUT"/usr/share/wayland-sessions/river.desktop
# Install package license
install -Dm644 README.md "$BPM_OUTPUT"/usr/share/doc/river/README.md install -Dm644 README.md "$BPM_OUTPUT"/usr/share/doc/river/README.md
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/river/LICENSE install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/river/LICENSE
} }