rest: enable gir

depends: #8223
This commit is contained in:
maxice8 2019-02-05 20:33:12 -02:00 committed by maxice8
parent 84d64d6e9b
commit 243e83d37f
1 changed files with 16 additions and 10 deletions

View File

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