void-packages/srcpkgs/playerctl/template

35 lines
1,002 B
Bash
Raw Normal View History

2015-05-16 11:08:57 +00:00
# Template file for 'playerctl'
pkgname=playerctl
version=0.4.2
revision=2
2015-05-16 11:08:57 +00:00
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
makedepends="libglib-devel"
2015-05-16 11:08:57 +00:00
short_desc="MPRIS command-line controller and library"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="LGPL-3"
homepage="https://github.com/acrisci/playerctl"
distfiles="https://github.com/acrisci/playerctl/releases/download/v${version}/${pkgname}-${version}.tar.gz"
checksum=4e6d05f0b1a5bd781cef69e3b08db2f965914dc52a934d099887113fcd5e7959
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
2015-05-16 11:08:57 +00:00
playerctl-devel_package() {
depends="playerctl>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
2015-05-16 11:08:57 +00:00
}
}