odt2txt: fix package for on-device builds
This commit is contained in:
parent
bab423c2bd
commit
3ec9fe3a4d
12
packages/odt2txt/Makefile.patch
Normal file
12
packages/odt2txt/Makefile.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -uNr odt2txt-0.5/Makefile odt2txt-0.5.mod/Makefile
|
||||||
|
--- odt2txt-0.5/Makefile 2014-11-18 19:10:08.000000000 +0200
|
||||||
|
+++ odt2txt-0.5.mod/Makefile 2019-08-13 21:39:23.220216345 +0300
|
||||||
|
@@ -14,7 +14,7 @@
|
||||||
|
CFLAGS += -DNO_ICONV
|
||||||
|
endif
|
||||||
|
|
||||||
|
-LIBS = -lz
|
||||||
|
+LIBS = -liconv -lz
|
||||||
|
ZIP_OBJS =
|
||||||
|
ifdef HAVE_LIBZIP
|
||||||
|
CFLAGS += -DHAVE_LIBZIP
|
@ -3,13 +3,9 @@ TERMUX_PKG_DESCRIPTION="Simple converter from OpenDocument Text to plain text"
|
|||||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||||
TERMUX_PKG_VERSION=0.5
|
TERMUX_PKG_VERSION=0.5
|
||||||
TERMUX_PKG_REVISION=3
|
TERMUX_PKG_REVISION=4
|
||||||
TERMUX_PKG_SRCURL=https://github.com/dstosberg/odt2txt/archive/v$TERMUX_PKG_VERSION.tar.gz
|
TERMUX_PKG_SRCURL=https://github.com/dstosberg/odt2txt/archive/v$TERMUX_PKG_VERSION.tar.gz
|
||||||
TERMUX_PKG_SHA256=23a889109ca9087a719c638758f14cc3b867a5dcf30a6c90bf6a0985073556dd
|
TERMUX_PKG_SHA256=23a889109ca9087a719c638758f14cc3b867a5dcf30a6c90bf6a0985073556dd
|
||||||
TERMUX_PKG_DEPENDS="libiconv, libzip, zlib"
|
TERMUX_PKG_DEPENDS="libiconv, libzip, zlib"
|
||||||
TERMUX_PKG_BUILD_IN_SRC=true
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
TERMUX_PKG_EXTRA_MAKE_ARGS="DESTDIR=$TERMUX_PREFIX"
|
TERMUX_PKG_EXTRA_MAKE_ARGS="HAVE_LIBZIP=1 DESTDIR=$TERMUX_PREFIX"
|
||||||
|
|
||||||
termux_step_configure() {
|
|
||||||
LDFLAGS+=" -liconv"
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user