diff -Naur abiword.orig/abiword-3.0.0-fixintrospection.patch abiword/abiword-3.0.0-fixintrospection.patch --- abiword.orig/abiword-3.0.0-fixintrospection.patch 1970-01-01 01:00:00.000000000 +0100 +++ abiword/abiword-3.0.0-fixintrospection.patch 2014-11-25 21:41:24.635884978 +0100 @@ -0,0 +1,16 @@ +diff --git a/src/wp/main/gtk/libabiword.cpp b/src/wp/main/gtk/libabiword.cpp +index 7567a54..c4d8e12 100644 +--- a/src/wp/main/gtk/libabiword.cpp ++++ b/src/wp/main/gtk/libabiword.cpp +@@ -30,8 +30,8 @@ static AP_UnixApp *_abiword_app = NULL; + + /** + * libabiword_init: +- * @argc: (inout): argument count +- * @argv: (array length=argc) (inout) (allow-none): Commandline arguments ++ * @argc: argument count ++ * @argv: (array length=argc): Commandline arguments + * + * Initializes libabiword + */ + diff -Naur abiword.orig/PKGBUILD abiword/PKGBUILD --- abiword.orig/PKGBUILD 2014-11-25 22:04:10.656667427 +0100 +++ abiword/PKGBUILD 2014-11-25 21:42:40.844012013 +0100 @@ -12,14 +12,16 @@ makedepends=('pkgconfig' 'asio' 'boost' 'fribidi' 'goffice' 'libwmf' 'wv' 'link-grammar' 'gtkmathview' 'aiksaurus' 'libxslt' 'enchant' 'libots' 'libwpg' 'librsvg' 'loudmouth' 'libsoup' 'psiconv' - 'redland' 'libical') + 'redland' 'libical' 'python2-gobject') options=('!makeflags') source=(http://abisource.com/downloads/$pkgbase/$pkgver/source/$pkgbase-$pkgver.tar.gz fix_crash_saving_pdf.patch - abiword-3.0.0-librevenge.patch) + abiword-3.0.0-librevenge.patch + abiword-3.0.0-fixintrospection.patch) md5sums=('8d9c41cff3a8fbef8d0c835c65600e65' 'c3336f5ac7d227ff755c7e42459f20e1' - '6fc2d653d3b814bbfd9b0d71c69c4796') + '6fc2d653d3b814bbfd9b0d71c69c4796' + '222ad7623ee6f03ad91ee3025b8b5d91') prepare() { cd $pkgbase-$pkgver @@ -31,6 +33,12 @@ patch -Np0 -i ${srcdir}/abiword-3.0.0-librevenge.patch find plugins -name plugin.m4 | xargs cat > plugin-configure.m4 + + # python2 fix + sed -i 's/python -c/python2 -c/' src/gi-overrides/Makefile.{am,in} + + # fix introspection + patch -Np1 -i ${srcdir}/abiword-3.0.0-fixintrospection.patch #aclocal -I m4 --install #autoconf @@ -67,7 +75,8 @@ --disable-builtin-plugins \ --enable-plugins \ --disable-collab-backend-service \ - --disable-collab-backend-tcp + --disable-collab-backend-tcp \ + --enable-introspection make }