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) +