diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..f1d453d --- /dev/null +++ b/check-version.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Gitlab repository +REPO="pipewire/pipewire" + +# 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 e1277e2..e41d27f 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,10 @@ name: pipewire description: Low-latency audio/video router and processor url: https://pipewire.org/ -version: 1.0.3 +version: 1.4.6 license: LGPL2.1-or-later,MIT architecture: any -depends: ["gcc","glibc","dbus","glib","ncurses","readline"] -make_depends: ["alsa-lib","pulseaudio","libsndfile","libx11","libxfixes","meson","opus","valgrind","desktop-file-utils"] +depends: ["gcc","glibc","dbus","glib","libpulse","ncurses","readline"] +make_depends: ["alsa-lib","libsndfile","libx11","libxfixes","meson","opus","valgrind","desktop-file-utils"] +conflicts: ["pulseaudio"] type: source diff --git a/source-files/20-pipewire-pulse.conf b/source-files/20-pipewire-pulse.conf new file mode 100644 index 0000000..0a1c391 --- /dev/null +++ b/source-files/20-pipewire-pulse.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 pipewire-pulse directly + +context.exec = [ { path = "/usr/bin/pipewire" args = "-c pipewire-pulse.conf" } ] diff --git a/source.sh b/source.sh index 42bda22..f5dddee 100644 --- a/source.sh +++ b/source.sh @@ -33,7 +33,12 @@ check() { # This function is used to move the compiled files into the output directory package() { cd build + DESTDIR="$BPM_OUTPUT" ninja install + # Install pipewire-pulse launcher config file from Void Linux + install -Dm644 "$BPM_WORKDIR"/20-pipewire-pulse.conf "$BPM_OUTPUT"/usr/share/examples/pipewire/20-pipewire-pulse.conf + + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/pipewire/COPYING }