void-packages/srcpkgs/libmediaart/template
2014-11-08 10:37:26 +01:00

44 lines
1.2 KiB
Text

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