diff --git a/disabled-packages/duplicity/build.sh b/disabled-packages/duplicity/build.sh new file mode 100644 index 000000000..77367afec --- /dev/null +++ b/disabled-packages/duplicity/build.sh @@ -0,0 +1,20 @@ +TERMUX_PKG_HOMEPAGE=http://duplicity.nongnu.org/ +TERMUX_PKG_DESCRIPTION="Encrypted bandwidth-efficient backup using the rsync algorithm" +TERMUX_PKG_VERSION=0.7.06 +TERMUX_PKG_SRCURL=https://code.launchpad.net/duplicity/0.7-series/${TERMUX_PKG_VERSION}/+download/duplicity-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_DEPENDS="librsync, python2, python2-lockfile" +TERMUX_PKG_BUILD_IN_SRC="yes" + +termux_step_make_install () { + pip install http://pypi.python.org/packages/source/d/distutilscross/distutilscross-0.1.tar.gz + + export PYTHONXCPREFIX=$TERMUX_PREFIX + export LDSHARED="${CC} -shared -lpython2.7" + + python setup.py build -x + python setup.py install --prefix=$TERMUX_PREFIX --force +} + +termux_step_post_massage () { + find . -path '*.pyc' -delete +} diff --git a/disabled-packages/duplicity/setup.py.patch b/disabled-packages/duplicity/setup.py.patch new file mode 100644 index 000000000..5f0259ee6 --- /dev/null +++ b/disabled-packages/duplicity/setup.py.patch @@ -0,0 +1,13 @@ +diff -u -r ../duplicity-0.7.06/setup.py ./setup.py +--- ../duplicity-0.7.06/setup.py 2015-12-07 07:03:39.000000000 -0500 ++++ ./setup.py 2016-01-20 18:58:46.049638771 -0500 +@@ -34,7 +34,8 @@ + print("Sorry, duplicity requires version 2.6 or 2.7 of python.") + sys.exit(1) + +-incdir_list = libdir_list = None ++incdir_list = ['@TERMUX_PREFIX@/include', '@TERMUX_PREFIX@/include/python2.7'] ++libdir_list = ['@TERMUX_PREFIX@/lib'] + + if os.name == 'posix': + LIBRSYNC_DIR = os.environ.get('LIBRSYNC_DIR', '') diff --git a/disabled-packages/python2-lockfile/build.sh b/disabled-packages/python2-lockfile/build.sh new file mode 100644 index 000000000..87f01cf51 --- /dev/null +++ b/disabled-packages/python2-lockfile/build.sh @@ -0,0 +1,15 @@ +TERMUX_PKG_HOMEPAGE=https://pypi.python.org/pypi/lockfile +TERMUX_PKG_DESCRIPTION="Platform-independent file locking module for python 2" +TERMUX_PKG_VERSION=0.12.2 +TERMUX_PKG_SRCURL=https://pypi.python.org/packages/source/l/lockfile/lockfile-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_DEPENDS="python2" +TERMUX_PKG_BUILD_IN_SRC=yes +TERMUX_PKG_PLATFORM_INDEPENDENT=yes + +termux_step_make_install () { + python setup.py install --prefix=$TERMUX_PREFIX --force +} + +termux_step_post_massage () { + find . -path '*.pyc' -delete +} diff --git a/disabled-packages/python2-paramiko/build.sh b/disabled-packages/python2-paramiko/build.sh new file mode 100644 index 000000000..582fef9a3 --- /dev/null +++ b/disabled-packages/python2-paramiko/build.sh @@ -0,0 +1,18 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/paramiko/paramiko +TERMUX_PKG_DESCRIPTION="Native Python 2 SSHv2 protocol library" +TERMUX_PKG_VERSION=1.16.0 +TERMUX_PKG_SRCURL=https://github.com/paramiko/paramiko/archive/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_FOLDERNAME=paramiko-$TERMUX_PKG_VERSION +TERMUX_PKG_DEPENDS="python2" +TERMUX_PKG_BUILD_IN_SRC=yes +TERMUX_PKG_PLATFORM_INDEPENDENT=yes + +termux_step_make_install () { + export PYTHONUSERBASE=$TERMUX_PREFIX +#python setup.py install --force --prefix=$TERMUX_PREFIX + python setup.py install --force --user +} + +termux_step_post_massage () { + find . -path '*.pyc' -delete +} diff --git a/disabled-packages/python2-pycryptopp/build.sh b/disabled-packages/python2-pycryptopp/build.sh new file mode 100644 index 000000000..fc40e974c --- /dev/null +++ b/disabled-packages/python2-pycryptopp/build.sh @@ -0,0 +1,24 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/tahoe-lafs/pycryptopp +TERMUX_PKG_DESCRIPTION="Python 2 interfaces to a few good crypto algorithms" +TERMUX_PKG_VERSION=0.6.0 +TERMUX_PKG_SRCURL=https://github.com/tahoe-lafs/pycryptopp/archive/pycryptopp-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_FOLDERNAME=pycryptopp-pycryptopp-$TERMUX_PKG_VERSION +TERMUX_PKG_DEPENDS="python2" +TERMUX_PKG_BUILD_IN_SRC="yes" + +termux_step_make_install () { + pip install http://pypi.python.org/packages/source/d/distutilscross/distutilscross-0.1.tar.gz + + export PYTHONXCPREFIX=$TERMUX_PREFIX + export LDSHARED="${CC} -shared -lpython2.7" + + echo "__version__ = '$TERMUX_PKG_VERSION'" > src/pycryptopp/_version.py + + python setup.py build -x + export PYTHONUSERBASE=$TERMUX_PREFIX/lib/python2.7/site-packages/ + python setup.py install --prefix=$TERMUX_PREFIX --force --user +} + +termux_step_post_massage () { + find . -path '*.pyc' -delete +} diff --git a/disabled-packages/python2-pycryptopp/setup.py.patch b/disabled-packages/python2-pycryptopp/setup.py.patch new file mode 100644 index 000000000..0cbc56dd5 --- /dev/null +++ b/disabled-packages/python2-pycryptopp/setup.py.patch @@ -0,0 +1,23 @@ +diff -u -r ../pycryptopp-pycryptopp-0.6.0/setup.py ./setup.py +--- ../pycryptopp-pycryptopp-0.6.0/setup.py 2012-03-13 04:16:09.000000000 -0400 ++++ ./setup.py 2016-01-20 19:54:13.085989935 -0500 +@@ -57,8 +57,8 @@ + undef_macros=[] + libraries=[] + ext_modules=[] +-include_dirs=[] +-library_dirs=[] ++include_dirs = ['/data/data/com.termux/files/usr/include', '/data/data/com.termux/files/usr/include/python2.7'] ++library_dirs = ['/data/data/com.termux/files/usr/lib'] + extra_srcs=[] # This is for Crypto++ .cpp files if they are needed. + + # +@@ -208,7 +208,7 @@ + for s in os.listdir(os.path.join("src-ed25519","supercop-ref")) + if s.endswith(".c") and s!="test.c"]) + m = Extension("pycryptopp.publickey.ed25519._ed25519", +- include_dirs=[os.path.join("src-ed25519","supercop-ref")], ++ include_dirs=[os.path.join("src-ed25519","supercop-ref")] + include_dirs, + sources=sources) + ext_modules.append(m) + diff --git a/disabled-packages/racket/build.sh b/disabled-packages/racket/build.sh new file mode 100644 index 000000000..b59cd9a0e --- /dev/null +++ b/disabled-packages/racket/build.sh @@ -0,0 +1,13 @@ +TERMUX_PKG_HOMEPAGE=https://racket-lang.org +TERMUX_PKG_DESCRIPTION="Full-spectrum programming language going beyond Lisp and Scheme" +TERMUX_PKG_VERSION=6.3 +TERMUX_PKG_SRCURL=https://mirror.racket-lang.org/releases/6.3/installers/racket-minimal-${TERMUX_PKG_VERSION}-src-builtpkgs.tgz +TERMUX_PKG_DEPENDS="libffi, libandroid-support" +# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ssl=openssl --disable-iri" +# TERMUX_PKG_HOSTBUILD=true +TERMUX_PKG_FOLDERNAME=racket-${TERMUX_PKG_VERSION} +TERMUX_MAKE_PROCESSES=1 + +termux_step_post_extract_package () { + export TERMUX_PKG_SRCDIR=$TERMUX_PKG_SRCDIR/src +} diff --git a/packages/aapt/build.sh b/packages/aapt/build.sh index 8ad708502..3b8e9c439 100644 --- a/packages/aapt/build.sh +++ b/packages/aapt/build.sh @@ -52,7 +52,7 @@ termux_step_make_install () { cd libcutils tar xf $LIBCUTILS_TARFILE - rm trace.c dlmalloc_stubs.c ashmem-host.c + rm trace.c dlmalloc_stubs.c ashmem-host.c dir_hash.c cd ../libutils tar xf $LIBUTILS_TARFILE diff --git a/packages/apt/apt-pkg-aptconfiguration.cc.patch b/packages/apt/apt-pkg-aptconfiguration.cc.patch index 49508e816..1cce5fea4 100644 --- a/packages/apt/apt-pkg-aptconfiguration.cc.patch +++ b/packages/apt/apt-pkg-aptconfiguration.cc.patch @@ -1,18 +1,20 @@ -diff -u -r ../apt-1.1.3/apt-pkg/aptconfiguration.cc ./apt-pkg/aptconfiguration.cc ---- ../apt-1.1.3/apt-pkg/aptconfiguration.cc 2015-11-30 03:08:24.000000000 -0500 -+++ ./apt-pkg/aptconfiguration.cc 2015-12-03 18:16:35.167212811 -0500 -@@ -35,8 +35,8 @@ +diff -u -r ../apt-1.2/apt-pkg/aptconfiguration.cc ./apt-pkg/aptconfiguration.cc +--- ../apt-1.2/apt-pkg/aptconfiguration.cc 2016-01-15 13:53:52.000000000 -0500 ++++ ./apt-pkg/aptconfiguration.cc 2016-01-25 06:12:27.102248821 -0500 +@@ -35,9 +35,9 @@ // setDefaultConfigurationForCompressors /*{{{*/ static void setDefaultConfigurationForCompressors() { // Set default application paths to check for optional compression types - _config->CndSet("Dir::Bin::bzip2", "/bin/bzip2"); - _config->CndSet("Dir::Bin::xz", "/usr/bin/xz"); +- _config->CndSet("Dir::Bin::lz4", "/usr/bin/lz4"); + _config->CndSet("Dir::Bin::bzip2", "bin/bzip2"); + _config->CndSet("Dir::Bin::xz", "bin/xz"); ++ _config->CndSet("Dir::Bin::lz4", "bin/lz4"); if (FileExists(_config->FindFile("Dir::Bin::xz")) == true) { _config->Set("Dir::Bin::lzma", _config->FindFile("Dir::Bin::xz")); _config->Set("APT::Compressor::lzma::Binary", "xz"); -@@ -49,7 +49,7 @@ +@@ -50,7 +50,7 @@ _config->Set("APT::Compressor::lzma::UncompressArg::", "-d"); } } else { @@ -20,8 +22,8 @@ diff -u -r ../apt-1.1.3/apt-pkg/aptconfiguration.cc ./apt-pkg/aptconfiguration.c + _config->CndSet("Dir::Bin::lzma", "bin/lzma"); if (_config->Exists("APT::Compressor::lzma::CompressArg") == false) { _config->Set("APT::Compressor::lzma::CompressArg::", "--suffix="); - _config->Set("APT::Compressor::lzma::CompressArg::", "-9"); -@@ -218,7 +218,7 @@ + _config->Set("APT::Compressor::lzma::CompressArg::", "-6"); +@@ -220,7 +220,7 @@ // get the environment language codes: LC_MESSAGES (and later LANGUAGE) // we extract both, a long and a short code and then we will // check if we actually need both (rare) or if the short is enough diff --git a/packages/apt/build.sh b/packages/apt/build.sh index 1d326713f..399fabff0 100644 --- a/packages/apt/build.sh +++ b/packages/apt/build.sh @@ -1,7 +1,8 @@ TERMUX_PKG_HOMEPAGE=https://packages.debian.org/apt TERMUX_PKG_DESCRIPTION="Front-end for the dpkg package manager" TERMUX_PKG_DEPENDS="liblzma, libgnustl, dpkg, gnupg" -TERMUX_PKG_VERSION=1.1.10 +TERMUX_PKG_VERSION=1.2.1 +TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_SRCURL=http://ftp.debian.org/debian/pool/main/a/apt/apt_${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--host=${TERMUX_ARCH}-linux --disable-rpath acl_cv_rpath=$TERMUX_PREFIX/lib gt_cv_func_CFPreferencesCopyAppValue=no gt_cv_func_CFLocaleCopyCurrent=no ac_cv_c_bigendian=no --no-create" # When ready to drop bz2 support: @@ -44,7 +45,7 @@ termux_step_make_install () { mkdir -p $TERMUX_PREFIX/lib/apt/methods $TERMUX_PREFIX/share/man/man{5,8} cp $TERMUX_PKG_BUILDDIR/docs/apt{,-cache,-get}.8 $TERMUX_PREFIX/share/man/man8/ cp $TERMUX_PKG_BUILDDIR/docs/{apt.conf,sources.list}.5 $TERMUX_PREFIX/share/man/man5/ - cp $TERMUX_PKG_BUILDDIR/bin/methods/{copy,file,gpgv,gzip,http,https} $TERMUX_PREFIX/lib/apt/methods + cp $TERMUX_PKG_BUILDDIR/bin/methods/{copy,file,gpgv,gzip,http,https,store} $TERMUX_PREFIX/lib/apt/methods (cd $TERMUX_PREFIX/lib/apt/methods; ln -f -s gzip xz) mkdir -p $TERMUX_PREFIX/etc/apt @@ -52,4 +53,8 @@ termux_step_make_install () { # The trusted.gpg was created with "apt-key add public-key.key": cp $TERMUX_PKG_BUILDER_DIR/trusted.gpg $TERMUX_PREFIX/etc/apt/ + + mkdir -p $TERMUX_PREFIX/etc/bash_completion.d/ + cp $TERMUX_PKG_SRCDIR/completions/bash/apt \ + $TERMUX_PREFIX/etc/bash_completion.d/ } diff --git a/packages/apt/completions-bash-apt.patch b/packages/apt/completions-bash-apt.patch new file mode 100644 index 000000000..059a63a35 --- /dev/null +++ b/packages/apt/completions-bash-apt.patch @@ -0,0 +1,27 @@ +diff -u -r ../apt-1.2/completions/bash/apt ./completions/bash/apt +--- ../apt-1.2/completions/bash/apt 2016-01-15 13:53:52.000000000 -0500 ++++ ./completions/bash/apt 2016-01-25 06:15:46.747246153 -0500 +@@ -2,7 +2,7 @@ + + _apt() + { +- local sourcesdir="/etc/apt/sources.list.d" ++ local sourcesdir="@TERMUX_PREFIX@/etc/apt/sources.list.d" + local cur prev words cword + _init_completion || return + +@@ -66,14 +66,9 @@ + if [[ -n $command ]]; then + case $command in + remove|purge|autoremove) +- if [[ -f /etc/debian_version ]]; then + # Debian system + COMPREPLY=( $( \ + _xfunc dpkg _comp_dpkg_installed_packages $cur ) ) +- else +- # assume RPM based +- _xfunc rpm _rpm_installed_packages +- fi + return 0 + ;; + show|list) diff --git a/packages/bash-completion/build.sh b/packages/bash-completion/build.sh index 2ca9c56bc..c01501367 100644 --- a/packages/bash-completion/build.sh +++ b/packages/bash-completion/build.sh @@ -1,5 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://bash-completion.alioth.debian.org/ TERMUX_PKG_DESCRIPTION="Programmable completion for the bash shell" TERMUX_PKG_VERSION=2.1 +TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_SRCURL=https://bash-completion.alioth.debian.org/files/bash-completion-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_DEPENDS="bash" +TERMUX_PKG_PLATFORM_INDEPENDENT=yes diff --git a/packages/bash-completion/words-bad-array-subscript.patch b/packages/bash-completion/words-bad-array-subscript.patch new file mode 100644 index 000000000..7cbccedba --- /dev/null +++ b/packages/bash-completion/words-bad-array-subscript.patch @@ -0,0 +1,23 @@ +From: Barry Warsaw +Subject: Fix bash: words: bad array subscript +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741479 +Origin: vendor, https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 +Forwarded: yes, <20140312212729.17788.38099.reportbug@samba4.Chuck.local> + +--- + bash_completion | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- bash-completion.orig/bash_completion ++++ bash-completion/bash_completion +@@ -718,7 +718,7 @@ _init_completion() + fi + done + +- [[ $cword -eq 0 ]] && return 1 ++ [[ $cword -le 0 ]] && return 1 + prev=${words[cword-1]} + + [[ ${split-} ]] && _split_longopt && split=true + diff --git a/packages/binutils/build.sh b/packages/binutils/build.sh index 27f60fe92..17613ed90 100755 --- a/packages/binutils/build.sh +++ b/packages/binutils/build.sh @@ -1,11 +1,14 @@ -TERMUX_PKG_VERSION=2.25 +TERMUX_PKG_VERSION=2.26 TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/binutils/ TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the GNU linker, and as, the GNU assembler" TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.gz -# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gold" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-werror" TERMUX_PKG_EXTRA_MAKE_ARGS="tooldir=$TERMUX_PREFIX" TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1/windmc.1 share/man/man1/windres.1 bin/ld.bfd" +# Avoid linking against libfl.so from flex if available: +export LEXLIB= + termux_step_post_make_install () { cp $TERMUX_PKG_BUILDER_DIR/ldd $TERMUX_PREFIX/bin/ldd } diff --git a/packages/binutils/ld-emultempl-elf32.em.patch b/packages/binutils/ld-emultempl-elf32.em.patch new file mode 100644 index 000000000..5dd80b84f --- /dev/null +++ b/packages/binutils/ld-emultempl-elf32.em.patch @@ -0,0 +1,17 @@ +diff -u -r ../binutils-2.26/ld/emultempl/elf32.em ./ld/emultempl/elf32.em +--- ../binutils-2.26/ld/emultempl/elf32.em 2015-11-13 03:27:42.000000000 -0500 ++++ ./ld/emultempl/elf32.em 2016-01-28 10:20:11.534910516 -0500 +@@ -115,8 +115,13 @@ + static void + gld${EMULATION_NAME}_after_parse (void) + { ++#ifndef __ANDROID__ ++ /** The Android linker does not support DF_1_PIE but prints a warning: ++ 'unsupported flags DT_FLAGS_1=0x8000000' ++ due to validation in linker.cpp (see "case DT_FLAGS_1" there. */ */ + if (bfd_link_pie (&link_info)) + link_info.flags_1 |= (bfd_vma) DF_1_PIE; ++#endif + + after_parse_default (); + } diff --git a/packages/binutils/native_lib_dirs.patch b/packages/binutils/native_lib_dirs.patch32 similarity index 100% rename from packages/binutils/native_lib_dirs.patch rename to packages/binutils/native_lib_dirs.patch32 diff --git a/packages/binutils/native_lib_dirs.patch64 b/packages/binutils/native_lib_dirs.patch64 new file mode 100644 index 000000000..b4415bf7c --- /dev/null +++ b/packages/binutils/native_lib_dirs.patch64 @@ -0,0 +1,12 @@ +diff -r -u ../binutils-2.24/ld/configure.tgt ./ld/configure.tgt +--- ../binutils-2.24/ld/configure.tgt 2013-11-26 12:37:33.000000000 +0100 ++++ ./ld/configure.tgt 2014-02-12 18:06:26.000000000 +0100 +@@ -769,7 +769,7 @@ + + esac + +-NATIVE_LIB_DIRS='/usr/local/lib /lib /usr/lib' ++NATIVE_LIB_DIRS='/system/lib64' + case "${target}" in + + *-*-dragonfly*) diff --git a/packages/ca-certificates/build.sh b/packages/ca-certificates/build.sh index ed4b48663..aabfdfb20 100644 --- a/packages/ca-certificates/build.sh +++ b/packages/ca-certificates/build.sh @@ -1,13 +1,12 @@ TERMUX_PKG_HOMEPAGE=http://curl.haxx.se/docs/caextract.html TERMUX_PKG_DESCRIPTION="Common CA certificates" -TERMUX_PKG_VERSION=20151028 -TERMUX_PKG_BUILD_REVISION=2 +TERMUX_PKG_VERSION=20160122 TERMUX_PKG_PLATFORM_INDEPENDENT=yes termux_step_make_install () { CERTFILE=$TERMUX_PKG_TMPDIR/cert.pem curl -o $CERTFILE https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt - if grep -q 'SHA1: 6d7d2f0a4fae587e7431be191a081ac1257d300a' $CERTFILE; then + if grep -q 'SHA1: 0ab47e2f41518f8d223eab517cb799e5b071231e' $CERTFILE; then CERT_DIR=$TERMUX_PREFIX/etc/tls mkdir -p $CERT_DIR mv $CERTFILE $CERT_DIR/cert.pem diff --git a/packages/debianutils/build.sh b/packages/debianutils/build.sh index c5bc0aeb8..0aa787a57 100644 --- a/packages/debianutils/build.sh +++ b/packages/debianutils/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=https://packages.debian.org/debianutils TERMUX_PKG_DESCRIPTION="Small utilities which are used primarily by the installation scripts of Debian packages" -TERMUX_PKG_VERSION=4.5.1 +TERMUX_PKG_VERSION=4.7 TERMUX_PKG_SRCURL=http://ftp.debian.org/debian/pool/main/d/debianutils/debianutils_${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_RM_AFTER_INSTALL="bin/installkernel share/man/man8/installkernel.8" -TERMUX_PKG_FOLDERNAME=debianutils +TERMUX_PKG_FOLDERNAME=debianutils-$TERMUX_PKG_VERSION diff --git a/packages/dialog/build.sh b/packages/dialog/build.sh index 1228c8974..ca81b007b 100755 --- a/packages/dialog/build.sh +++ b/packages/dialog/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_DESCRIPTION="Application used in shell scripts which displays text user interface widgets" TERMUX_PKG_HOMEPAGE=http://invisible-island.net/dialog/ TERMUX_PKG_DEPENDS="ncurses" -TERMUX_PKG_VERSION="1.2-20150920" +TERMUX_PKG_VERSION="1.3-20160126" TERMUX_PKG_SRCURL=http://invisible-island.net/datafiles/release/dialog.tar.gz # This will break when a new version is released (the URL unfortunately does not change) TERMUX_PKG_FOLDERNAME="dialog-$TERMUX_PKG_VERSION" diff --git a/packages/elinks/build.sh b/packages/elinks/build.sh index 8a8904649..93f0fc2f2 100644 --- a/packages/elinks/build.sh +++ b/packages/elinks/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://elinks.or.cz TERMUX_PKG_DESCRIPTION="Full-Featured Text WWW Browser" TERMUX_PKG_VERSION=0.12pre6 -TERMUX_PKG_BUILD_REVISION=1 +TERMUX_PKG_BUILD_REVISION=2 TERMUX_PKG_SRCURL=http://elinks.or.cz/download/elinks-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_DEPENDS="libexpat, libidn, openssl" -TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-256-colors --with-openssl --mandir=$TERMUX_PREFIX/share/man" +TERMUX_PKG_DEPENDS="libexpat, libidn, openssl, libbz2" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-256-colors --with-openssl --mandir=$TERMUX_PREFIX/share/man --without-gc" diff --git a/packages/ffmpeg/build.sh b/packages/ffmpeg/build.sh index 3a873d8b9..a0692e429 100644 --- a/packages/ffmpeg/build.sh +++ b/packages/ffmpeg/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=https://www.ffmpeg.org/ TERMUX_PKG_DESCRIPTION="Tools and libraries to manipulate a wide range of multimedia formats and protocols" -TERMUX_PKG_VERSION=2.8.4 +TERMUX_PKG_VERSION=2.8.5 TERMUX_PKG_SRCURL=https://github.com/FFmpeg/FFmpeg/archive/n${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_FOLDERNAME=FFmpeg-n$TERMUX_PKG_VERSION # libbz2 is used by matroska decoder: diff --git a/packages/flex/build.sh b/packages/flex/build.sh index e264f172c..40e8e067f 100644 --- a/packages/flex/build.sh +++ b/packages/flex/build.sh @@ -1,4 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://flex.sourceforge.net/ TERMUX_PKG_DESCRIPTION="Fast lexical analyser generator" TERMUX_PKG_VERSION=2.6.0 +TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/flex/flex-${TERMUX_PKG_VERSION}.tar.xz +TERMUX_PKG_DEPENDS="m4" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="ac_cv_path_M4=$TERMUX_PREFIX/bin/m4" diff --git a/packages/git/build.sh b/packages/git/build.sh index 3bbc291bd..42cd02ce9 100755 --- a/packages/git/build.sh +++ b/packages/git/build.sh @@ -1,10 +1,9 @@ TERMUX_PKG_HOMEPAGE=http://git-scm.com/ TERMUX_PKG_DESCRIPTION="Distributed version control system designed to handle everything from small to very large projects with speed and efficiency" -# less is required as a pager for git log, -# and the busybox less does not handle used -# escape sequences: -TERMUX_PKG_DEPENDS="openssl, libcurl, less" +# less is required as a pager for git log, and the busybox less does not handle used escape sequences. +TERMUX_PKG_DEPENDS="libcurl, less" TERMUX_PKG_VERSION=2.7.0 +TERMUX_PKG_BUILD_REVISION=2 TERMUX_PKG_SRCURL=https://www.kernel.org/pub/software/scm/git/git-${TERMUX_PKG_VERSION}.tar.xz ## This requires a working $TERMUX_PREFIX/bin/sh on the host building: TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-tcltk --with-curl --with-shell=$TERMUX_PREFIX/bin/sh ac_cv_header_libintl_h=no ac_cv_fread_reads_directories=yes ac_cv_snprintf_returns_bogus=yes" @@ -22,4 +21,15 @@ TERMUX_PKG_RM_AFTER_INSTALL="bin/git-cvsserver bin/git-shell lib/perl5 Library" termux_step_post_make_install () { # Installing man requires asciidoc and xmlto, so git uses separate make targets for man pages make install-man + + mkdir -p $TERMUX_PREFIX/etc/bash_completion.d/ + cp $TERMUX_PKG_SRCDIR/contrib/completion/git-completion.bash \ + $TERMUX_PREFIX/etc/bash_completion.d/ +} + +termux_step_post_massage () { + if [ ! -f libexec/git-core/git-remote-https ]; then + echo "ERROR: Built without https support" + exit 1 + fi } diff --git a/packages/gnupg2/build.sh b/packages/gnupg2/build.sh index 62a879534..a6c5973fd 100755 --- a/packages/gnupg2/build.sh +++ b/packages/gnupg2/build.sh @@ -1,7 +1,6 @@ TERMUX_PKG_HOMEPAGE=http://www.gnupg.org/ TERMUX_PKG_DESCRIPTION="Implementation of the OpenPGP standard for encrypting and signing data and communication" -TERMUX_PKG_VERSION=2.1.10 -TERMUX_PKG_BUILD_REVISION=2 +TERMUX_PKG_VERSION=2.1.11 TERMUX_PKG_SRCURL=ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_DEPENDS="libassuan,libbz2,libgcrypt,libksba,libnpth,readline,pinentry" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-ldap --disable-sqlite" diff --git a/packages/golang/build.sh b/packages/golang/build.sh index 5a3cafc36..9d6316705 100644 --- a/packages/golang/build.sh +++ b/packages/golang/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=https://golang.org/ TERMUX_PKG_DESCRIPTION="Go programming language compiler" -_MAJOR_VERSION=1.6beta2 +_MAJOR_VERSION=1.6rc1 # Need to be considered a higher version than "1.5rc1": TERMUX_PKG_VERSION=1:$_MAJOR_VERSION TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz diff --git a/packages/grep/build.sh b/packages/grep/build.sh index 84a11852a..0cecf9d40 100644 --- a/packages/grep/build.sh +++ b/packages/grep/build.sh @@ -1,5 +1,5 @@ TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/grep/ TERMUX_PKG_DESCRIPTION="Command which searches one or more input files for lines containing a match to a specified pattern" TERMUX_PKG_DEPENDS="pcre" -TERMUX_PKG_VERSION=2.22 +TERMUX_PKG_VERSION=2.23 TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/grep/grep-${TERMUX_PKG_VERSION}.tar.xz diff --git a/packages/imagemagick/build.sh b/packages/imagemagick/build.sh index 31df5b1d1..aab5539bd 100644 --- a/packages/imagemagick/build.sh +++ b/packages/imagemagick/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=http://www.imagemagick.org/ TERMUX_PKG_DESCRIPTION="Suite to create, edit, compose, or convert images in a variety of formats" -TERMUX_PKG_VERSION="6.9.3-1" +TERMUX_PKG_VERSION="6.9.3-2" TERMUX_PKG_SRCURL=http://www.imagemagick.org/download/ImageMagick-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-largefile --without-x --with-magick-plus-plus=no --with-bzlib=no --with-xml=yes --with-lzma ac_cv_func_ftime=no ac_cv_header_complex_h=no" TERMUX_PKG_RM_AFTER_INSTALL="bin/Magick-config bin/MagickCore-config bin/MagickWand-config bin/Wand-config share/ImageMagick-6/francais.xml share/man/man1/Magick-config.1 share/man/man1/MagickCore-config.1 share/man/man1/MagickWand-config.1 share/man/man1/Wand-config.1" diff --git a/disabled-packages/libconfig/Makefile.in.patch b/packages/libconfig/Makefile.in.patch similarity index 100% rename from disabled-packages/libconfig/Makefile.in.patch rename to packages/libconfig/Makefile.in.patch diff --git a/disabled-packages/libconfig/build.sh b/packages/libconfig/build.sh similarity index 100% rename from disabled-packages/libconfig/build.sh rename to packages/libconfig/build.sh diff --git a/packages/libev/Makefile.in.patch b/packages/libev/Makefile.in.patch new file mode 100644 index 000000000..1ec49c39a --- /dev/null +++ b/packages/libev/Makefile.in.patch @@ -0,0 +1,12 @@ +diff -u -r ../libev-4.22/Makefile.in ./Makefile.in +--- ../libev-4.22/Makefile.in 2015-12-20 16:12:45.000000000 -0500 ++++ ./Makefile.in 2016-02-02 10:30:17.445084694 -0500 +@@ -343,7 +343,7 @@ + ev.3 ev.pod Symbols.ev Symbols.event + + man_MANS = ev.3 +-include_HEADERS = ev.h ev++.h event.h ++include_HEADERS = ev.h ev++.h + lib_LTLIBRARIES = libev.la + libev_la_SOURCES = ev.c event.c + libev_la_LDFLAGS = -version-info $(VERSION_INFO) diff --git a/packages/libev/build.sh b/packages/libev/build.sh new file mode 100644 index 000000000..9d7212a14 --- /dev/null +++ b/packages/libev/build.sh @@ -0,0 +1,6 @@ +TERMUX_PKG_HOMEPAGE=http://software.schmorp.de/pkg/libev.html +TERMUX_PKG_DESCRIPTION="Full-featured and high-performance event loop library" +TERMUX_PKG_VERSION=4.22 +TERMUX_PKG_SRCURL=http://dist.schmorp.de/libev/libev-${TERMUX_PKG_VERSION}.tar.gz + +CFLAGS+=" -Dfd_mask=int" diff --git a/packages/libgnutls/build.sh b/packages/libgnutls/build.sh index d09fcd5b6..379194488 100644 --- a/packages/libgnutls/build.sh +++ b/packages/libgnutls/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://www.gnutls.org/ TERMUX_PKG_DESCRIPTION="Secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them" TERMUX_PKG_DEPENDS="libgmp, libnettle, ca-certificates, libidn" _TERMUX_PKG_MAJOR_VERSION=3.4 -TERMUX_PKG_VERSION=${_TERMUX_PKG_MAJOR_VERSION}.8 +TERMUX_PKG_VERSION=${_TERMUX_PKG_MAJOR_VERSION}.9 TERMUX_PKG_SRCURL=ftp://ftp.gnutls.org/gcrypt/gnutls/v${_TERMUX_PKG_MAJOR_VERSION}/gnutls-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-hardware-acceleration --disable-cxx --disable-openssl-compatibility --with-included-libtasn1 --without-p11-kit --with-default-trust-store-file=$TERMUX_PREFIX/etc/tls/cert.pem" diff --git a/packages/libnettle/build.sh b/packages/libnettle/build.sh index 97f10a603..0d875334f 100644 --- a/packages/libnettle/build.sh +++ b/packages/libnettle/build.sh @@ -1,7 +1,5 @@ TERMUX_PKG_HOMEPAGE=http://www.lysator.liu.se/~nisse/nettle/ TERMUX_PKG_DESCRIPTION="Cryptographic library that is designed to fit easily in more or less any context" TERMUX_PKG_DEPENDS="libgmp" -TERMUX_PKG_VERSION=3.1.1 -TERMUX_PKG_BUILD_REVISION=2 +TERMUX_PKG_VERSION=3.2 TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/nettle/nettle-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-static" # needed for building diff --git a/packages/libtool/build.sh b/packages/libtool/build.sh index 7ce44d47a..4ad88c829 100644 --- a/packages/libtool/build.sh +++ b/packages/libtool/build.sh @@ -1,4 +1,11 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/libtool/ TERMUX_PKG_DESCRIPTION="Generic library support script hiding the complexity of using shared libraries behind a consistent, portable interface" +TERMUX_PKG_DEPENDS="bash,grep,sed" TERMUX_PKG_VERSION=2.4.6 +TERMUX_PKG_BUILD_REVISION=2 TERMUX_PKG_SRCURL=http://ftpmirror.gnu.org/libtool/libtool-${TERMUX_PKG_VERSION}.tar.gz + +termux_step_post_make_install () { + perl -p -i -e "s|\"/bin/|\"$TERMUX_PREFIX/bin/|" $TERMUX_PREFIX/bin/{libtool,libtoolize} + perl -p -i -e "s|${_SPECSFLAG}||g" $TERMUX_PREFIX/bin/{libtool,libtoolize} +} diff --git a/packages/libvterm/build.sh b/packages/libvterm/build.sh index c42fa0889..35481bc81 100644 --- a/packages/libvterm/build.sh +++ b/packages/libvterm/build.sh @@ -1,8 +1,9 @@ TERMUX_PKG_HOMEPAGE=http://libvterm.sourceforge.net/ TERMUX_PKG_DESCRIPTION="Terminal emulator library" -TERMUX_PKG_VERSION=0.0.`date "+%Y%m%d%H%M"` -TERMUX_PKG_SRCURL=https://github.com/neovim/libvterm/archive/master.zip -TERMUX_PKG_FOLDERNAME="libvterm-master" +# libvterm does not do releases, take a specific commit for now: +TERMUX_PKG_VERSION=0.0.201601301200 +TERMUX_PKG_SRCURL=https://github.com/neovim/libvterm/archive/a9c7c6fd20fa35e0ad3e0e98901ca12dfca9c25c.zip +TERMUX_PKG_FOLDERNAME=libvterm-a9c7c6fd20fa35e0ad3e0e98901ca12dfca9c25c TERMUX_PKG_BUILD_IN_SRC=yes termux_step_make () { diff --git a/packages/macchanger/autogen.sh.patch b/packages/macchanger/autogen.sh.patch new file mode 100644 index 000000000..d6b2ba1fb --- /dev/null +++ b/packages/macchanger/autogen.sh.patch @@ -0,0 +1,11 @@ +diff -u -r ../macchanger-1.7.0/autogen.sh ./autogen.sh +--- ../macchanger-1.7.0/autogen.sh 2014-01-01 12:10:25.000000000 -0500 ++++ ./autogen.sh 2016-01-28 15:39:53.656299665 -0500 +@@ -84,7 +84,6 @@ + exit; + fi + +-./configure "$@" + + echo + echo "Now type 'make' to compile $PROJECT." diff --git a/packages/macchanger/build.sh b/packages/macchanger/build.sh new file mode 100644 index 000000000..8d5f3fa98 --- /dev/null +++ b/packages/macchanger/build.sh @@ -0,0 +1,12 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/alobbs/macchanger +TERMUX_PKG_DESCRIPTION="Utility that makes the maniputation of MAC addresses of network interfaces easier" +TERMUX_PKG_VERSION=1.7.0 +TERMUX_PKG_SRCURL=https://github.com/alobbs/macchanger/archive/${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_FOLDERNAME=macchanger-${TERMUX_PKG_VERSION} +# TERMUX_PKG_DEPENDS="pcre, openssl, libuuid" +# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ssl=openssl --disable-iri" + +termux_step_pre_configure() { + cd $TERMUX_PKG_SRCDIR + ./autogen.sh +} diff --git a/packages/neovim/runtime-CMakeLists.txt.patch b/packages/neovim/runtime-CMakeLists.txt.patch index ba45d1310..00fc72116 100644 --- a/packages/neovim/runtime-CMakeLists.txt.patch +++ b/packages/neovim/runtime-CMakeLists.txt.patch @@ -1,12 +1,12 @@ diff -u -r ../neovim-master/runtime/CMakeLists.txt ./runtime/CMakeLists.txt ---- ../neovim-master/runtime/CMakeLists.txt 2015-08-03 15:36:33.000000000 -0400 -+++ ./runtime/CMakeLists.txt 2015-08-03 17:38:07.657949138 -0400 -@@ -35,7 +35,7 @@ +--- ../neovim-master/runtime/CMakeLists.txt 2016-02-05 10:02:38.000000000 -0500 ++++ ./runtime/CMakeLists.txt 2016-02-05 17:56:54.645492669 -0500 +@@ -32,7 +32,7 @@ + ) + add_custom_command(OUTPUT ${GENERATED_HELP_TAGS} - COMMAND ${CMAKE_COMMAND} -E copy_directory - ${PROJECT_SOURCE_DIR}/runtime/doc ${GENERATED_RUNTIME_DIR}/doc - COMMAND "${PROJECT_BINARY_DIR}/bin/nvim" + COMMAND "${PROJECT_BINARY_DIR}/../host-build/bin/nvim" -u NONE -i NONE - -esX + -es diff --git a/packages/nodejs/build.sh b/packages/nodejs/build.sh index e30adc148..5ec39c0eb 100644 --- a/packages/nodejs/build.sh +++ b/packages/nodejs/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=http://nodejs.org/ TERMUX_PKG_DESCRIPTION="Platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications" -TERMUX_PKG_VERSION=5.4.1 +TERMUX_PKG_VERSION=5.5.0 TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="openssl, libuv" TERMUX_PKG_RM_AFTER_INSTALL="lib/node_modules/npm/html lib/node_modules/npm/make.bat share/systemtap lib/dtrace" diff --git a/packages/openssl/build.sh b/packages/openssl/build.sh index 267947359..458faf5a6 100755 --- a/packages/openssl/build.sh +++ b/packages/openssl/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://www.openssl.org/ TERMUX_PKG_DESCRIPTION="Library implementing the SSL and TLS protocols as well as general purpose cryptography functions" TERMUX_PKG_DEPENDS="ca-certificates" -TERMUX_PKG_VERSION=1.0.2e +TERMUX_PKG_VERSION=1.0.2f TERMUX_PKG_SRCURL="http://www.openssl.org/source/openssl-${TERMUX_PKG_VERSION}.tar.gz" TERMUX_PKG_RM_AFTER_INSTALL="bin/c_rehash etc/ssl/misc" TERMUX_PKG_BUILD_IN_SRC=yes diff --git a/packages/parallel/build.sh b/packages/parallel/build.sh index 3cf980801..69652af21 100644 --- a/packages/parallel/build.sh +++ b/packages/parallel/build.sh @@ -1,5 +1,5 @@ TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/parallel/ TERMUX_PKG_DESCRIPTION="GNU Parallel is a shell tool for executing jobs in parallel using one or more machines" -TERMUX_PKG_VERSION=20151222 +TERMUX_PKG_VERSION=20160122 TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/parallel/parallel-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_DEPENDS="perl" diff --git a/packages/stunnel/build.sh b/packages/stunnel/build.sh index 8085c5add..4975b91b1 100644 --- a/packages/stunnel/build.sh +++ b/packages/stunnel/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=https://www.stunnel.org/ TERMUX_PKG_DESCRIPTION="Socket wrapper which can provide TLS support to ordinary applications" -TERMUX_PKG_VERSION=5.29 +TERMUX_PKG_VERSION=5.30 TERMUX_PKG_SRCURL=https://www.stunnel.org/downloads/stunnel-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="openssl, libutil" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-shared --with-ssl=$TERMUX_PREFIX --disable-fips" diff --git a/packages/tinyscheme/build.sh b/packages/tinyscheme/build.sh new file mode 100644 index 000000000..002a0d577 --- /dev/null +++ b/packages/tinyscheme/build.sh @@ -0,0 +1,21 @@ +TERMUX_PKG_HOMEPAGE=http://tinyscheme.sourceforge.net/home.html +TERMUX_PKG_DESCRIPTION="Very small scheme implementation" +TERMUX_PKG_VERSION=1.41 +TERMUX_PKG_BUILD_REVISION=1 +TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-1.41/tinyscheme-1.41.tar.gz +TERMUX_PKG_BUILD_IN_SRC=yes + +AR+=" crs" +LD=$CC + +# TODO: Add the tsx extension with file/networking (http://heras-gilsanz.com/manuel/tsx.html) +# and the regexp extension (http://downloads.sourceforge.net/project/tinyscheme/tinyscheme-regex/1.3/re-1.3.tar.gz) +#termux_step_pre_make () { +#TSX_TARFILE=$TERMUX_PKG_CACHEDIR/tsx-1.1.tar.gz +#test ! -f $TSX_TARFILE && curl -o $TSX_TARFILE "http://heras-gilsanz.com/manuel/tsx-1.1.tgz" +#} + +termux_step_post_make_install () { + mkdir -p $TERMUX_PREFIX/share/tinyscheme/ + cp $TERMUX_PKG_SRCDIR/init.scm $TERMUX_PREFIX/share/tinyscheme/ +} diff --git a/packages/tinyscheme/makefile.patch b/packages/tinyscheme/makefile.patch new file mode 100644 index 000000000..8a51ddef7 --- /dev/null +++ b/packages/tinyscheme/makefile.patch @@ -0,0 +1,39 @@ +diff -u -r ../tinyscheme-1.41/makefile ./makefile +--- ../tinyscheme-1.41/makefile 2013-04-14 16:08:33.000000000 -0400 ++++ ./makefile 2016-02-03 07:50:01.896212523 -0500 +@@ -18,7 +18,6 @@ + #AR= echo + + # Unix, generally +-CC = gcc -fpic -pedantic + DEBUG=-g -Wall -Wno-char-subscripts -O + Osuf=o + SOsuf=so +@@ -27,11 +26,8 @@ + LIBPREFIX=lib + OUT = -o $@ + RM= -rm -f +-AR= ar crs + + # Linux +-LD = gcc +-LDFLAGS = -shared + DEBUG=-g -Wno-char-subscripts -O + SYS_LIBS= -ldl -lm + PLATFORM_FEATURES= -DSUN_DL=1 +@@ -77,7 +73,7 @@ + $(LD) $(LDFLAGS) $(OUT) $(OBJS) $(SYS_LIBS) + + scheme$(EXE_EXT): $(OBJS) +- $(CC) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS) ++ $(CC) $(CFLAGS) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS) + + $(STATICLIBTARGET): $(OBJS) + $(AR) $@ $(OBJS) +@@ -96,3 +92,6 @@ + tags: TAGS + TAGS: $(TAGS_SRCS) + etags $(TAGS_SRCS) ++ ++install: scheme ++ cp scheme @TERMUX_PREFIX@/bin/tinyscheme diff --git a/packages/tinyscheme/schema.c.patch b/packages/tinyscheme/schema.c.patch new file mode 100644 index 000000000..9e0698c5b --- /dev/null +++ b/packages/tinyscheme/schema.c.patch @@ -0,0 +1,12 @@ +diff -u -r ../tinyscheme-1.41/scheme.c ./scheme.c +--- ../tinyscheme-1.41/scheme.c 2013-04-14 16:08:33.000000000 -0400 ++++ ./scheme.c 2016-02-03 08:22:19.137873950 -0500 +@@ -101,7 +101,7 @@ + #endif + + #ifndef InitFile +-# define InitFile "init.scm" ++# define InitFile "@TERMUX_PREFIX@/share/tinyscheme/init.scm" + #endif + + #ifndef FIRST_CELLSEGS diff --git a/packages/vim-python/build.sh b/packages/vim-python/build.sh index f280d8e80..2a37a7071 100755 --- a/packages/vim-python/build.sh +++ b/packages/vim-python/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_HOMEPAGE=http://www.vim.org/ TERMUX_PKG_DEPENDS="ncurses, vim-runtime, python" # Vim 7.4 patches described at ftp://ftp.vim.org/pub/vim/patches/7.4/README -TERMUX_PKG_VERSION=7.4.1147 +TERMUX_PKG_VERSION=7.4.1174 TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz" TERMUX_PKG_FOLDERNAME=vim-${TERMUX_PKG_VERSION} TERMUX_PKG_EXTRA_CONFIGURE_ARGS="vim_cv_toupper_broken=no vim_cv_terminfo=yes vim_cv_tty_group=world" diff --git a/packages/vim-python/src-osdef1.h.in.patch b/packages/vim-python/src-osdef1.h.in.patch new file mode 100644 index 000000000..416040c6f --- /dev/null +++ b/packages/vim-python/src-osdef1.h.in.patch @@ -0,0 +1,15 @@ +bzero() is a define in the NDK header files (but should probably +not be used at all, bzero as deprecated and then removed in POSIX). + +diff -u -r ../vim-7.4.1174/src/osdef1.h.in ./src/osdef1.h.in +--- ../vim-7.4.1174/src/osdef1.h.in 2016-01-24 16:17:03.000000000 -0500 ++++ ./src/osdef1.h.in 2016-01-24 17:01:12.816949231 -0500 +@@ -70,8 +70,6 @@ + # endif + # endif + #endif +-/* used inside of FD_ZERO macro: */ +-extern void bzero(void *, size_t); + #ifdef HAVE_SETSID + extern pid_t setsid(void); + #endif diff --git a/packages/vim/build.sh b/packages/vim/build.sh index 6629cf22a..f557c5b24 100755 --- a/packages/vim/build.sh +++ b/packages/vim/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_HOMEPAGE=http://www.vim.org/ TERMUX_PKG_DEPENDS="ncurses, vim-runtime" # Vim 7.4 patches described at ftp://ftp.vim.org/pub/vim/patches/7.4/README -TERMUX_PKG_VERSION=7.4.1147 +TERMUX_PKG_VERSION=7.4.1174 TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz" TERMUX_PKG_FOLDERNAME=vim-${TERMUX_PKG_VERSION} TERMUX_PKG_EXTRA_CONFIGURE_ARGS="vim_cv_toupper_broken=no vim_cv_terminfo=yes vim_cv_tty_group=world" diff --git a/packages/vim/src-osdef1.h.in.patch b/packages/vim/src-osdef1.h.in.patch new file mode 100644 index 000000000..416040c6f --- /dev/null +++ b/packages/vim/src-osdef1.h.in.patch @@ -0,0 +1,15 @@ +bzero() is a define in the NDK header files (but should probably +not be used at all, bzero as deprecated and then removed in POSIX). + +diff -u -r ../vim-7.4.1174/src/osdef1.h.in ./src/osdef1.h.in +--- ../vim-7.4.1174/src/osdef1.h.in 2016-01-24 16:17:03.000000000 -0500 ++++ ./src/osdef1.h.in 2016-01-24 17:01:12.816949231 -0500 +@@ -70,8 +70,6 @@ + # endif + # endif + #endif +-/* used inside of FD_ZERO macro: */ +-extern void bzero(void *, size_t); + #ifdef HAVE_SETSID + extern pid_t setsid(void); + #endif diff --git a/packages/wol/build.sh b/packages/wol/build.sh index c28cbf12d..6c25580eb 100644 --- a/packages/wol/build.sh +++ b/packages/wol/build.sh @@ -1,9 +1,10 @@ TERMUX_PKG_HOMEPAGE=http://sourceforge.net/projects/wake-on-lan/ TERMUX_PKG_DESCRIPTION="wol implements Wake On LAN functionality in a small program. It wakes up hardware that is Magic Packet compliant" TERMUX_PKG_VERSION=0.7.1 -TERMUX_PKG_BUILD_REVISION=1 +TERMUX_PKG_BUILD_REVISION=2 TERMUX_PKG_SRCURL=http://downloads.openwrt.org/sources/wol-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--infodir=$TERMUX_PREFIX/share/info" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--mandir=$TERMUX_PREFIX/share/man" +TERMUX_PKG_RM_AFTER_INSTALL="info/" termux_step_pre_configure() { # https://dev.openwrt.org/browser/packages/net/wol/Makefile diff --git a/packages/wol/lib-getline.h.patch b/packages/wol/lib-getline.h.patch new file mode 100644 index 000000000..d4d61a5ac --- /dev/null +++ b/packages/wol/lib-getline.h.patch @@ -0,0 +1,24 @@ +diff -u -r ../wol-0.7.1/lib/getline.h ./lib/getline.h +--- ../wol-0.7.1/lib/getline.h 2002-03-11 12:55:36.000000000 -0500 ++++ ./lib/getline.h 2016-02-05 16:14:45.530639085 -0500 +@@ -19,20 +19,4 @@ + + # include + +-# ifndef PARAMS +-# if defined PROTOTYPES || (defined __STDC__ && __STDC__) +-# define PARAMS(Args) Args +-# else +-# define PARAMS(Args) () +-# endif +-# endif +- +-# if __GLIBC__ < 2 +-int +-getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream)); +- +-int +-getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream)); +-# endif +- + #endif /* not GETLINE_H_ */