void-packages/srcpkgs/libmediaart2/template

41 lines
1.2 KiB
Bash

# Template file for 'libmediaart2'
pkgname=libmediaart2
version=1.9.0
revision=3
wrksrc="libmediaart-$version"
build_style=gnu-configure
configure_args="--disable-schemas-compile
$(vopt_if gir '--enable-vala --enable-introspection' '--disable-vala --disable-introspection')"
hostmakedepends="pkg-config intltool glib-devel
$(vopt_if gir 'vala-devel gobject-introspection')"
makedepends="libglib-devel gdk-pixbuf-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}/libmediaart/${version%.*}/libmediaart-$version.tar.xz"
checksum=94668adb29d4dc3115b0fd105942ebd5ca6f5f9dbb2afa8a191a73a747dd506f
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
libmediaart2-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
}
}