void-packages/srcpkgs/playerctl/template

41 lines
1.0 KiB
Bash

# Template file for 'playerctl'
pkgname=playerctl
version=0.6.0
revision=1
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="automake pkg-config glib-devel 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=c7af7291fa3efad07dabae62ad31f366e8730a84439e2499c6fb6b09f4a7d0e7
disable_parallel_build=yes
nocross=yes
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
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
}
}