Update package version to 0.5.10
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -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 = "" } ]
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user