diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..497edcb --- /dev/null +++ b/check-version.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Gitlab repository +REPO="pipewire/wireplumber" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://gitlab.freedesktop.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +# Trim '-gitlab' suffix +TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g') + +# Get version number from tag name +VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) + +# Trim 'v' character in VERSION variable +VERSION=$(echo "$VERSION" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index e9cde44..40dbea0 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: wireplumber description: WirePlumber is a modular session/policy manager for PipeWire -version: 0.5.5 +version: 0.5.10 url: https://pipewire.pages.freedesktop.org/wireplumber/ license: MIT architecture: any diff --git a/source-files/10-wireplumber.conf b/source-files/10-wireplumber.conf new file mode 100644 index 0000000..e1fdf5d --- /dev/null +++ b/source-files/10-wireplumber.conf @@ -0,0 +1,5 @@ +# copy or symlink this file to /etc/pipewire/pipewire.conf.d (system configuration) +# or ${XDG_CONFIG_HOME}/pipewire/pipewire.conf.d (per-user configuration) +# to configure pipewire to launch wireplumber directly + +context.exec = [ { path = "/usr/bin/wireplumber" args = "" } ] diff --git a/source.sh b/source.sh index 66bf203..66aab20 100644 --- a/source.sh +++ b/source.sh @@ -19,22 +19,27 @@ build() { cd build meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dsystem-lua=true -Delogind=enabled .. - ninja + meson compile } # 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 - ninja test + + meson test } # 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 - install -Dm644 "$BPM_SOURCE"/{NEWS,README}* -t "$BPM_OUTPUT"/usr/share/doc/wireplumber/ + meson install --destdir="$BPM_OUTPUT" + + # Install wireplumber launcher config file from Void Linux + install -Dm644 "$BPM_WORKDIR"/10-wireplumber.conf "$BPM_OUTPUT"/usr/share/examples/wireplumber/10-wireplumber.conf + + # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/wireplumber/LICENSE }