38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'rest'
|
|
pkgname=rest
|
|
version=0.7.93
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="$(vopt_enable gir introspection) --disable-static
|
|
--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
|
|
hostmakedepends="automake perl m4 libtool pkg-config glib-devel gobject-introspection"
|
|
makedepends="libglib-devel libsoup-gnome-devel libxml2-devel ca-certificates"
|
|
depends="ca-certificates"
|
|
short_desc="RESTful library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://www.gnome.org"
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
|
checksum=c710644455340a44ddc005c645c466f05c0d779993138ea21a62c6082108b216
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
rest-devel_package() {
|
|
depends="libglib-devel libsoup-devel>=2.44 libxml2-devel rest>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|