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
+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 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
# This function is used to compile the source code
build() {
@@ -29,10 +19,13 @@ check() {
package() {
cp -a build/* -t "$BPM_OUTPUT"
install -Dm644 contrib/river.desktop "$BPM_OUTPUT"/usr/share/wayland-sessions/river.desktop
install -d "$BPM_OUTPUT"/usr/share/river
cp -a example -t "$BPM_OUTPUT"/usr/share/river
# Install configuration file
install -Dm755 example/init "$BPM_OUTPUT"/usr/share/river/example/init
# 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 LICENSE "$BPM_OUTPUT"/usr/share/licenses/river/LICENSE
}