2014-03-27 10:38:22 +01:00
|
|
|
# Template file for 'libmediaart'
|
|
|
|
pkgname=libmediaart
|
2014-04-03 09:24:31 +02:00
|
|
|
version=0.4.0
|
2014-05-10 09:55:30 +02:00
|
|
|
revision=2
|
2014-03-27 10:38:22 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--disable-schemas-compile"
|
2014-05-10 09:55:30 +02:00
|
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
2014-03-27 10:38:22 +01:00
|
|
|
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"
|
2014-04-03 09:24:31 +02:00
|
|
|
checksum=e8ec92a642f4df7f988364f6451adf89e1611d7379a636d8c7eff4ca21a0fd1c
|
2014-03-27 10:38:22 +01:00
|
|
|
|
2014-05-10 09:55:30 +02:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2014-03-27 10:38:22 +01:00
|
|
|
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
|
2014-05-10 09:55:30 +02:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
vmove usr/share/vala
|
|
|
|
fi
|
2014-03-27 10:38:22 +01:00
|
|
|
}
|
|
|
|
}
|