diff --git a/packages/lzlib/build.sh b/packages/lzlib/build.sh new file mode 100644 index 000000000..4cec72f46 --- /dev/null +++ b/packages/lzlib/build.sh @@ -0,0 +1,7 @@ +TERMUX_PKG_HOMEPAGE=http://www.nongnu.org/lzip/lzlib.html +TERMUX_PKG_DESCRIPTION="A library providing in-memory LZMA compression and decompression functions" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_VERSION=1.11 +TERMUX_PKG_SRCURL=http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=6c5c5f8759d1ab7c4c3c53788ea2d9daad04aeddcf338226893f8ff134914d36 +TERMUX_PKG_DEPENDS="lzlib" diff --git a/packages/lzlib/configure.patch b/packages/lzlib/configure.patch new file mode 100644 index 000000000..a163a5b2b --- /dev/null +++ b/packages/lzlib/configure.patch @@ -0,0 +1,18 @@ +diff -uNr lzlib-1.11/configure lzlib-1.11.mod/configure +--- lzlib-1.11/configure 2019-01-02 13:51:19.000000000 +0200 ++++ lzlib-1.11.mod/configure 2019-09-23 19:34:31.423708870 +0300 +@@ -28,10 +28,10 @@ + infodir='$(datarootdir)/info' + libdir='$(exec_prefix)/lib' + mandir='$(datarootdir)/man' +-CC=gcc +-CPPFLAGS= +-CFLAGS='-Wall -W -O2' +-LDFLAGS= ++CC?=gcc ++CPPFLAGS?= ++CFLAGS?='-Wall -W -O2' ++LDFLAGS?= + + # checking whether we are using GNU C. + /bin/sh -c "${CC} --version" > /dev/null 2>&1 || diff --git a/packages/plzip/Makefile.in.patch b/packages/plzip/Makefile.in.patch new file mode 100644 index 000000000..b3091ebde --- /dev/null +++ b/packages/plzip/Makefile.in.patch @@ -0,0 +1,12 @@ +diff -uNr plzip-1.8/Makefile.in plzip-1.8.mod/Makefile.in +--- plzip-1.8/Makefile.in 2018-10-12 00:56:58.000000000 +0300 ++++ plzip-1.8.mod/Makefile.in 2019-09-23 19:39:16.088047518 +0300 +@@ -4,7 +4,7 @@ + INSTALL_PROGRAM = $(INSTALL) -m 755 + INSTALL_DATA = $(INSTALL) -m 644 + INSTALL_DIR = $(INSTALL) -d -m 755 +-LIBS = -llz -lpthread ++LIBS = -llz + SHELL = /bin/sh + CAN_RUN_INSTALLINFO = $(SHELL) -c "install-info --version" > /dev/null 2>&1 + diff --git a/packages/plzip/build.sh b/packages/plzip/build.sh new file mode 100644 index 000000000..4d5bc57df --- /dev/null +++ b/packages/plzip/build.sh @@ -0,0 +1,7 @@ +TERMUX_PKG_HOMEPAGE=http://www.nongnu.org/lzip/plzip.html +TERMUX_PKG_DESCRIPTION="A massively parallel lossless data compressor based on the lzlib compression library" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_VERSION=1.8 +TERMUX_PKG_SRCURL=http://download.savannah.gnu.org/releases/lzip/plzip/plzip-$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=edafae3c15142ac0ebd84c2231ff81da4f68db58359a737e750f2780686c3612 +TERMUX_PKG_DEPENDS="lzlib" diff --git a/packages/plzip/configure.patch b/packages/plzip/configure.patch new file mode 100644 index 000000000..92fc36e1e --- /dev/null +++ b/packages/plzip/configure.patch @@ -0,0 +1,18 @@ +diff -uNr plzip-1.8/configure plzip-1.8.mod/configure +--- plzip-1.8/configure 2019-01-04 20:33:44.000000000 +0200 ++++ plzip-1.8.mod/configure 2019-09-23 19:37:59.464411919 +0300 +@@ -21,10 +21,10 @@ + datarootdir='$(prefix)/share' + infodir='$(datarootdir)/info' + mandir='$(datarootdir)/man' +-CXX=g++ +-CPPFLAGS= +-CXXFLAGS='-Wall -W -O2' +-LDFLAGS= ++CXX?=g++ ++CPPFLAGS?= ++CXXFLAGS?='-Wall -W -O2' ++LDFLAGS?= + + # checking whether we are using GNU C++. + /bin/sh -c "${CXX} --version" > /dev/null 2>&1 ||