Initial commit

This commit is contained in:
2025-10-15 14:21:33 +03:00
commit 3a6d262c9f
4 changed files with 57 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Exclude bpm archives
*.bpm
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Gitlab repository
REPO="panel-plugins/xfce4-pulseaudio-plugin"
# 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.xfce.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | cut -d'-' -f4 | grep -v 'pre' | sort -V | tail -n1)
echo "$TAG_NAME"
+24
View File
@@ -0,0 +1,24 @@
name: xfce4-pulseaudio-plugin
description: Pulseaudio plugin for the Xfce4 panel
version: 0.5.1
revision: 1
url: https://docs.xfce.org/panel-plugins/xfce4-pulseaudio-plugin/start
license: GPL2-or-later
architecture: any
type: source
depends:
- libcanberra
- libkeybinder3
- libnotify
- libpulse
- xfce4-panel
optional_depends:
- pavucontrol
make_depends:
- meson
- xfce4-dev-tools
downloads:
- url: https://gitlab.xfce.org/panel-plugins/xfce4-pulseaudio-plugin/-/archive/xfce4-pulseaudio-plugin-${BPM_PKG_VERSION}/xfce4-pulseaudio-plugin-xfce4-pulseaudio-plugin-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 800a15886407f32c3e663d6c3ac463052f32d56f714c79f337af0a7838c43853
+19
View File
@@ -0,0 +1,19 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
# 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
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
meson setup --prefix=/usr --localstatedir=/var build
meson compile -C build
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
meson install -C build --destdir="$BPM_OUTPUT"
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xfce4-pulseaudio-plugin/COPYING
}