new package: gnumeric
This commit is contained in:
parent
147c06946b
commit
0d7c9e1bf6
29
x11-packages/gnumeric/build.sh
Normal file
29
x11-packages/gnumeric/build.sh
Normal file
@ -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}
|
||||
}
|
20
x11-packages/gnumeric/configure.patch
Normal file
20
x11-packages/gnumeric/configure.patch
Normal file
@ -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 "
|
Loading…
Reference in New Issue
Block a user