38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'playerctl'
|
|
pkgname=playerctl
|
|
version=2.0.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=f02f2fbeb2b51fd906af1e01404485ef316e24f616eac00eeee3cdfa54310b5a
|
|
|
|
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
|
|
}
|
|
}
|