35 lines
1 KiB
Bash
35 lines
1 KiB
Bash
# Template file for 'playerctl'
|
|
pkgname=playerctl
|
|
version=0.4.2
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="$(vopt_enable gir introspection)"
|
|
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
|
|
makedepends="libglib-devel"
|
|
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
|
|
disable_parallel_build=yes
|
|
|
|
build_options="gir"
|
|
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/share/gtk-doc
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|