void-packages/srcpkgs/rest/template

45 lines
1.2 KiB
Text
Raw Normal View History

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