From 8c7af18195452b31ef71aaee422f2657069bae36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 5 Jul 2020 18:07:41 +0700 Subject: [PATCH] rhythmbox: enable gir for cross --- srcpkgs/rhythmbox/template | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/srcpkgs/rhythmbox/template b/srcpkgs/rhythmbox/template index 8f7ed24e6b4..bd3a56f6359 100644 --- a/srcpkgs/rhythmbox/template +++ b/srcpkgs/rhythmbox/template @@ -1,11 +1,14 @@ # Template file for 'rhythmbox' pkgname=rhythmbox version=3.4.4 -revision=1 +revision=2 build_style=gnu-configure -configure_args="--disable-static --disable-schemas-compile --with-gudev - --without-hal $(vopt_if gir --enable-vala)" -hostmakedepends="pkg-config intltool gnome-doc-utils itstool $(vopt_if gir gobject-introspection)" +build_helper=gir +configure_args="--disable-static --with-gudev --without-hal + $(vopt_if gir --enable-vala) + ac_cv_strftime_supports_E_O=yes" +hostmakedepends="pkg-config intltool gnome-doc-utils itstool glib-devel + $(vopt_if gir 'gobject-introspection vala')" makedepends="gtk+3-devel libsoup-gnome-devel totem-pl-parser-devel json-glib-devel libgudev-devel libdiscid-devel vala-devel libmtp-devel avahi-glib-libs-devel libpeas-devel brasero-devel @@ -23,11 +26,12 @@ checksum=ee0eb0d7d7bdf696ac9471b19ff3bea3240d63b6cb8a134bf632054af8665d90 python_version=3 pycompile_dirs="/usr/lib/rhythmbox/plugins /usr/lib/rhythmbox/sample-plugins" - build_options="gir" -if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" -fi +build_options_default="gir" + +pre_build() { + export GIR_EXTRA_LIBS_PATH="$wrksrc/shell/.libs" +} librhythmbox_package() { short_desc+=" - shared library"