42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'playerctl'
|
|
pkgname=playerctl
|
|
version=2.1.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="Duncaen <duncaen@voidlinux.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=9eb810c1fd8e1afa5c76cecd34a2d22cc95e2029afe502025db8a38bce13e68d
|
|
|
|
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/*.a"
|
|
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
|
|
}
|
|
}
|