void-packages/srcpkgs/libchamplain/template

47 lines
1.3 KiB
Plaintext

# Template file for 'libchamplain'
pkgname=libchamplain
version=0.12.7
revision=2
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config intltool"
makedepends="libsoup-gnome-devel gtk+3-devel clutter-gtk-devel>=1.5.2 sqlite-devel"
short_desc="Library aimed to provide a Clutter widget to display rasterized maps"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://projects.gnome.org/libchamplain/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/0.12/$pkgname-$version.tar.xz"
checksum=b607fa7e32dd67e5d9541d620abb212a85d076d1def0252c0112a362bddeac5e
# 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
libchamplain-devel_package() {
depends="libsoup-gnome-devel gtk+3-devel clutter-gtk-devel>=1.5.2
json-glib-devel sqlite-devel
${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
vmove usr/share/vala
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}