void-packages/srcpkgs/playerctl/template
2019-04-28 01:45:50 +02:00

34 lines
1 KiB
Bash

# Template file for 'playerctl'
pkgname=playerctl
version=2.0.2
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=04461f5a9869fd43c76da539c5565c6275c8dbab3295f7ecf45990695a53bc54
build_options="doc gir"
desc_option_doc="Build documentation" # fails :(
build_options_default="gir"
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
}
}