From d7e4d08115bc42649b1c7684a2233256e26d5ab4 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Sat, 26 Mar 2016 17:36:46 +1100 Subject: [PATCH 1/3] Create build.sh --- packages/getmail/build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/getmail/build.sh diff --git a/packages/getmail/build.sh b/packages/getmail/build.sh new file mode 100644 index 000000000..c94e63bab --- /dev/null +++ b/packages/getmail/build.sh @@ -0,0 +1,15 @@ +TERMUX_PKG_HOMEPAGE=http://pyropus.ca/software/getmail/ +TERMUX_PKG_DESCRIPTION="fetchmail replacement relatively easy to configure" +TERMUX_PKG_VERSION=4.49.0 +TERMUX_PKG_SRCURL=http://pyropus.ca/software/getmail/old-versions/getmail-${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 +} From aecffae6a3a1951b6638b8b6c366b3dd2b66ce3c Mon Sep 17 00:00:00 2001 From: its-pointless Date: Sat, 26 Mar 2016 17:38:12 +1100 Subject: [PATCH 2/3] Create utilities.py.patch --- packages/getmail/utilities.py.patch | 1 + 1 file changed, 1 insertion(+) create mode 100644 packages/getmail/utilities.py.patch diff --git a/packages/getmail/utilities.py.patch b/packages/getmail/utilities.py.patch new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/packages/getmail/utilities.py.patch @@ -0,0 +1 @@ + From bc094198c000cb600665877b747edcc2abab3fe2 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Sat, 26 Mar 2016 17:41:26 +1100 Subject: [PATCH 3/3] Added files via upload --- packages/getmail/utilities.py.patch | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/getmail/utilities.py.patch b/packages/getmail/utilities.py.patch index 8b1378917..f85c77a67 100644 --- a/packages/getmail/utilities.py.patch +++ b/packages/getmail/utilities.py.patch @@ -1 +1,19 @@ - +--- ../getmail/src/getmailcore/utilities.py 2013-09-01 04:11:31.000000000 +1000 ++++ ./getmailcore/utilities.py 2016-03-26 17:22:08.173621990 +1100 +@@ -44,6 +44,7 @@ + import getpass + import commands + import sys ++import shutil + + # hashlib only present in python2.5, ssl in python2.6; used together + # in SSL functionality below +@@ -333,7 +334,7 @@ + + # Move message file from Maildir/tmp to Maildir/new + try: +- os.link(fname_tmp, fname_new) ++ shutil.copy2(fname_tmp, fname_new) + os.unlink(fname_tmp) + + except OSError: