void-packages/srcpkgs/libmediaart/template

36 lines
1.1 KiB
Bash

# Template file for 'libmediaart'
pkgname=libmediaart
version=1.9.4
revision=1
build_style=gnu-configure
configure_args="$(vopt_if gir '--enable-introspection --enable-vala' '--disable-introspection --disable-vala')"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir 'gobject-introspection vala-devel')"
makedepends="libglib-devel gdk-pixbuf-devel"
short_desc="Media art extraction and cache management library"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1"
homepage="http://www.gnome.org/"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=a57be017257e4815389afe4f58fdacb6a50e74fd185452b23a652ee56b04813d
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
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
vmove usr/share/vala
fi
}
}