void-packages/srcpkgs/playerctl/template
2019-02-23 20:32:52 +01:00

39 lines
1.1 KiB
Bash

# Template file for 'playerctl'
pkgname=playerctl
version=2.0.1
revision=2
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="Duncaen <duncaen@voidlinux.org>"
license="LGPL-3.0-or-later"
homepage="https://github.com/acrisci/playerctl"
distfiles="https://github.com/acrisci/playerctl/archive/v${version}.tar.gz"
checksum=f02f2fbeb2b51fd906af1e01404485ef316e24f616eac00eeee3cdfa54310b5a
build_options="doc gir"
desc_option_doc="Build documentation" # fails :(
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
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
}
}