void-packages/srcpkgs/playerctl/template

43 lines
1.2 KiB
Bash

# Template file for 'playerctl'
pkgname=playerctl
version=2.3.1
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir 'true' 'false')
-Dgtk-doc=$(vopt_if doc 'true' 'false')"
hostmakedepends="pkg-config glib-devel $(vopt_if doc gtk-doc)"
makedepends="libglib-devel"
short_desc="MPRIS command-line controller and library"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="LGPL-3.0-or-later"
homepage="https://github.com/acrisci/playerctl"
changelog="https://github.com/altdesktop/playerctl/raw/master/CHANGELOG.md"
distfiles="https://github.com/acrisci/playerctl/archive/v${version}.tar.gz"
checksum=62b55123fe0fcbb5add8b7abdf7b039d2d74662f851def77b482bd1ca0440608
build_options="doc gir"
desc_option_doc="Build documentation" # fails :(
build_options_default="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" doc"
fi
playerctl-devel_package() {
depends="playerctl>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_doc" ]; then
vmove usr/share/gtk-doc
fi
}
}