Browse Source

Add some disabled packages

android-5
Fredrik Fornwall 9 years ago
parent
commit
60a83ae5b6
  1. 20
      disabled-packages/duplicity/build.sh
  2. 13
      disabled-packages/duplicity/setup.py.patch
  3. 15
      disabled-packages/python2-lockfile/build.sh
  4. 18
      disabled-packages/python2-paramiko/build.sh
  5. 24
      disabled-packages/python2-pycryptopp/build.sh
  6. 23
      disabled-packages/python2-pycryptopp/setup.py.patch

20
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
}

13
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', '')

15
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
}

18
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
}

24
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
}

23
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)
Loading…
Cancel
Save