void-packages/srcpkgs/playerctl/template
2021-09-27 02:15:59 -03:00

41 lines
1.2 KiB
Bash

# Template file for 'playerctl'
pkgname=playerctl
version=2.4.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=75957ad5071956f563542c7557af16a57e40b4a7f66bc9b6373d022ec5eef548
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/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_doc" ]; then
vmove usr/share/gtk-doc
fi
}
}