void-packages/srcpkgs/libmediaart/template

37 lines
1.1 KiB
Bash

# Template file for 'libmediaart'
pkgname=libmediaart
version=1.9.4
revision=3
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection) $(vopt_enable vala)"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala vala)"
makedepends="libglib-devel gdk-pixbuf-devel $(vopt_if vala vala)"
short_desc="Media art extraction and cache management library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://www.gnome.org/"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=a57be017257e4815389afe4f58fdacb6a50e74fd185452b23a652ee56b04813d
# Package build options
build_options="gir vala"
build_options_default="gir vala"
libmediaart-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}