mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-01 17:42:56 +02:00
libgdata: enable gir
This commit is contained in:
parent
9368cc9abd
commit
7967f71156
1 changed files with 24 additions and 12 deletions
|
@ -1,22 +1,31 @@
|
||||||
# Template file for 'libgdata'
|
# Template file for 'libgdata'
|
||||||
pkgname=libgdata
|
pkgname=libgdata
|
||||||
version=0.17.9
|
version=0.17.9
|
||||||
revision=2
|
revision=3
|
||||||
|
build_helper="gir"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static $(vopt_enable gir introspection)"
|
configure_args="--disable-static $(vopt_enable gir introspection)
|
||||||
hostmakedepends="pkg-config flex intltool glib-devel $(vopt_if gir gobject-introspection)"
|
$(vopt_enable vala)"
|
||||||
makedepends="json-glib-devel gtk+3-devel uhttpmock-devel liboauth-devel gcr-devel gnome-online-accounts-devel"
|
hostmakedepends="pkg-config flex intltool glib-devel $(vopt_if vala vala)"
|
||||||
|
makedepends="json-glib-devel gtk+3-devel uhttpmock-devel liboauth-devel
|
||||||
|
gcr-devel gnome-online-accounts-devel"
|
||||||
short_desc="Library for accessing GData webservices"
|
short_desc="Library for accessing GData webservices"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Rasmus Thosen <oss@cogitri.dev>"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="http://live.gnome.org/libgdata"
|
homepage="https://wiki.gnome.org/Projects/libgdata"
|
||||||
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=85c4f7674c0098ffaf060ae01b6b832cb277b3673d54ace3bdedaad6b127453a
|
checksum=85c4f7674c0098ffaf060ae01b6b832cb277b3673d54ace3bdedaad6b127453a
|
||||||
|
|
||||||
build_options="gir"
|
build_options="gir vala"
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
build_options_default="gir"
|
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
|
||||||
fi
|
*-musl) ;;
|
||||||
|
*) build_options_default+=" gir vala" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
export GIR_EXTRA_LIBS_PATH="${wrksrc}/gdata/.libs"
|
||||||
|
}
|
||||||
|
|
||||||
libgdata-devel_package() {
|
libgdata-devel_package() {
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
|
@ -29,5 +38,8 @@ libgdata-devel_package() {
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
fi
|
fi
|
||||||
|
if [ "$build_option_vala" ]; then
|
||||||
|
vmove usr/share/vala
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue