2011-09-29 10:35:27 +02:00
|
|
|
# Template file for 'rest'
|
|
|
|
pkgname=rest
|
2014-03-27 10:41:05 +01:00
|
|
|
version=0.7.91
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-16 08:58:36 +01:00
|
|
|
configure_args="--disable-static --with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
hostmakedepends="libtool pkg-config glib-devel"
|
2014-03-27 10:41:05 +01:00
|
|
|
makedepends="libglib-devel libsoup-gnome-devel>=2.46 libxml2-devel ca-certificates"
|
|
|
|
depends="ca-certificates"
|
2011-09-29 10:35:27 +02:00
|
|
|
short_desc="RESTful library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-27 19:50:46 +02:00
|
|
|
license="GPL-2"
|
2012-10-11 11:13:25 +02:00
|
|
|
homepage="http://www.gnome.org"
|
2014-03-27 10:41:05 +01:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
|
|
|
checksum=838814d935143f2dc99eb79f1ac69c615e7b547339f6cd226dd0ed4d7c16b67a
|
2014-02-16 08:58:36 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
2013-04-14 11:53:56 +02:00
|
|
|
|
|
|
|
rest-devel_package() {
|
2014-02-16 08:58:36 +01:00
|
|
|
depends="libglib-devel libsoup-devel>=2.44 libxml2-devel rest>=${version}_${revision}"
|
2013-09-26 18:59:18 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 11:53:56 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share
|
2013-09-26 18:59:18 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 11:53:56 +02:00
|
|
|
}
|
|
|
|
}
|