diff --git a/x11-packages/gnumeric/build.sh b/x11-packages/gnumeric/build.sh new file mode 100644 index 000000000..663745834 --- /dev/null +++ b/x11-packages/gnumeric/build.sh @@ -0,0 +1,29 @@ +TERMUX_PKG_HOMEPAGE=http://www.gnumeric.org/ +TERMUX_PKG_DESCRIPTION="The GNOME spreadsheet" +TERMUX_PKG_LICENSE="GPL-2.0, GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux" +_MAJOR_VERSION=1.12 +TERMUX_PKG_VERSION=${_MAJOR_VERSION}.52 +TERMUX_PKG_SRCURL=https://download.gnome.org/sources/gnumeric/${_MAJOR_VERSION}/gnumeric-${TERMUX_PKG_VERSION}.tar.xz +TERMUX_PKG_SHA256=73cf73049a22a1d828506275b2c9378ec37c5ff37b68bb1f2f494f0d6400823b +TERMUX_PKG_DEPENDS="glib, goffice, gtk3, libcairo, libgsf, libxml2, pango, zlib" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--enable-introspection=no +--without-gda +--without-psiconv +--without-paradox +--without-long-double +--without-perl +--without-python +" + +termux_step_pre_configure() { + CPPFLAGS+=" -D__USE_GNU" +} + +termux_step_post_configure() { + local ver=$(awk '/^PACKAGE_VERSION =/ { print $3 }' Makefile) + local so=$TERMUX_PREFIX/lib/libspreadsheet.so + rm -f ${so} + echo "INPUT(-lspreadsheet-${ver})" > ${so} +} diff --git a/x11-packages/gnumeric/configure.patch b/x11-packages/gnumeric/configure.patch new file mode 100644 index 000000000..e944a5e05 --- /dev/null +++ b/x11-packages/gnumeric/configure.patch @@ -0,0 +1,20 @@ +--- a/configure ++++ b/configure +@@ -16092,7 +16092,7 @@ + fi + + +-GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0` ++GLIB_COMPILE_RESOURCES=glib-compile-resources + + + +@@ -17237,7 +17237,7 @@ + -Werror=missing-prototypes -Werror=nested-externs \ + -Werror=implicit-function-declaration \ + -Wmissing-declarations -Wno-pointer-sign \ +- -Werror=format-security -Wbitwise -Wcast-to-as \ ++ -Wno-error=format-security -Wbitwise -Wcast-to-as \ + -Wdefault-bitfield-sign -Wdo-while -Wparen-string \ + -Wptr-subtraction-blows -Wreturn-void -Wtypesign \ + -Wstrict-prototypes -Wno-error=format-nonliteral "