nemo: fix crossbuild.

This commit is contained in:
Enno Boland 2015-11-09 09:11:01 +01:00
parent 8b31b52d04
commit 08f5a8c754
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,11 @@
--- configure.ac.orig 2015-11-09 08:29:19.285934417 +0100
+++ configure.ac 2015-11-09 08:29:23.950934068 +0100
@@ -219,7 +219,7 @@ dnl ====================================
dnl strftime checks
-AC_TRY_RUN([#include <time.h>
+AC_TRY_COMPILE([#include <time.h>
int main ()
{
char buf[100];

View file

@ -18,6 +18,11 @@ homepage="http://cinnamon.linuxmint.com/"
distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
checksum=f22687b1556d328c9300aacb3bbd5b4b0a491221dacd979c421b96df85b51189
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
pre_configure() {
# Fix build
sed -i '/AC_SUBST(DISABLE_DEPRECATED_CFLAGS)/d' configure.ac
@ -41,6 +46,8 @@ nemo-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gir-1.0
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}