void-packages/srcpkgs/playerctl/template
Andrew Benson ca254bcbfe playerctl: update to 0.6.1
- Move to new meson system, allowing cross build

Closes: #874 [via git-merge-pr]
2018-08-31 15:07:45 +02:00

37 lines
1.1 KiB
Bash

# Template file for 'playerctl'
pkgname=playerctl
version=0.6.1
revision=1
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir 'true' 'false')
$(vopt_if doc '-Dgtk-doc=true' '-Dgtk-doc=false')"
hostmakedepends="pkg-config glib-devel $(vopt_if doc gtk-doc)
$(vopt_if gir gobject-introspection)"
makedepends="libglib-devel"
short_desc="MPRIS command-line controller and library"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="LGPL-3.0-or-later"
homepage="https://github.com/acrisci/playerctl"
distfiles="https://github.com/acrisci/playerctl/archive/v${version}.tar.gz"
checksum=5857b0f9c733fecd4a16664d2e401a52a0be29b135b8b2d90b2bb454369ba2ea
build_options="doc gir"
desc_option_doc="Build documentation" # fails :(
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
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
}
}