Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions srcpkgs/pwvucontrol/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Template file for 'pwvucontrol'
pkgname=pwvucontrol
version=0.5.2
revision=1
build_style=meson
Comment thread
Bnyro marked this conversation as resolved.
build_helper=rust
hostmakedepends="blueprint-compiler cargo clang desktop-file-utils gettext
glib-devel gtk4-update-icon-cache pkg-config"
makedepends="libadwaita-devel pipewire-devel rust-std wireplumber-devel"
short_desc="Volume control applet for Pipewire"
maintainer="Bnyro <bnyro@tutanota.com>"
license="GPL-3.0-only"
homepage="https://github.com/saivert/pwvucontrol"
Comment thread
Bnyro marked this conversation as resolved.
distfiles="https://github.com/saivert/pwvucontrol/archive/refs/tags/${version}.tar.gz"
checksum=125f8b36e82e4fbad97356626c46701f92aeb94f96ed8941b740141e33f2c9f5

post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
fi
}

pre_build() {
if [ "$CROSS_BUILD" ]; then
export GI_TYPELIB_PATH="${XBPS_CROSS_BASE}/usr/lib/girepository-1.0"
fi
}