2013-09-26 16:10:44 +00:00
|
|
|
# Template file for 'geocode-glib'
|
|
|
|
pkgname=geocode-glib
|
|
|
|
version=3.10.0
|
2014-02-19 14:55:05 +00:00
|
|
|
revision=2
|
2013-09-26 16:10:44 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--disable-static"
|
2014-02-19 14:55:05 +00:00
|
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
2013-09-26 16:10:44 +00:00
|
|
|
makedepends="json-glib-devel>=0.16.2 libsoup-gnome-devel>=2.44"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="json-glib>=0.16.2 libsoup-gnome>=2.44"
|
2013-09-26 16:10:44 +00:00
|
|
|
short_desc="GLib library for geocoding and reverse geocoding"
|
|
|
|
homepage="http://www.gnome.org"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
|
|
checksum=0aedc198cf8a9b934a290d50aadaf4b48bb13c3b4783618c6753eb466cdaa637
|
2014-02-19 14:55:05 +00: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
|
2013-09-26 16:10:44 +00:00
|
|
|
|
|
|
|
geocode-glib-devel_package() {
|
2014-02-19 14:55:05 +00:00
|
|
|
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
2013-09-26 16:10:44 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/share/gtk-doc
|
2014-02-19 14:55:05 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-09-26 16:10:44 +00:00
|
|
|
}
|
|
|
|
}
|