summaryrefslogtreecommitdiff
path: root/community/ktoblzcheck
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-06 23:10:44 +0000
committerroot <root@rshg047.dnsready.net>2011-07-06 23:10:44 +0000
commitb215b5e985b9310dff8d992510f12a87141fe7cb (patch)
treebc81c9c0c02ab9a4d6ee15e553850141b8d46f94 /community/ktoblzcheck
parent9d2caacbc33de06407311a5da87e5d22e0266435 (diff)
Wed Jul 6 23:10:44 UTC 2011
Diffstat (limited to 'community/ktoblzcheck')
-rw-r--r--community/ktoblzcheck/PKGBUILD9
-rw-r--r--community/ktoblzcheck/ktoblzcheck-python3.patch50
2 files changed, 5 insertions, 54 deletions
diff --git a/community/ktoblzcheck/PKGBUILD b/community/ktoblzcheck/PKGBUILD
index e646ae9a5..544b2a70c 100644
--- a/community/ktoblzcheck/PKGBUILD
+++ b/community/ktoblzcheck/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 40241 2011-02-22 13:26:21Z stephane $
+# $Id: PKGBUILD 51218 2011-07-05 21:19:18Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Philipp Sandhaus <philipp.sandhaus@gmx.de>
pkgname=ktoblzcheck
-pkgver=1.31
+pkgver=1.33
pkgrel=1
pkgdesc="A library to check account numbers and bank codes of German banks"
arch=(i686 x86_64)
@@ -14,8 +14,8 @@ depends=('gcc-libs' 'python')
optdepends=('perl')
source=(http://downloads.sourceforge.net/sourceforge/ktoblzcheck/ktoblzcheck-$pkgver.tar.gz
ktoblzcheck-python3.patch)
-md5sums=('2bc5fd7b3d6785527f7f0ea565c35e29'
- 'bf0d5e813aef4be426af5642ec4d524a')
+md5sums=('e9f62a9a64ee51ab43751eadcade0433'
+ 'a81a697bb3aaeffb7fac0ad7d9166e3f')
build() {
cd "$srcdir/ktoblzcheck-$pkgver"
@@ -23,6 +23,7 @@ build() {
patch -p1 <$srcdir/ktoblzcheck-python3.patch
make
}
+
package() {
cd "$srcdir/ktoblzcheck-$pkgver"
make DESTDIR="$pkgdir" install
diff --git a/community/ktoblzcheck/ktoblzcheck-python3.patch b/community/ktoblzcheck/ktoblzcheck-python3.patch
index c94e0a021..5bfc53275 100644
--- a/community/ktoblzcheck/ktoblzcheck-python3.patch
+++ b/community/ktoblzcheck/ktoblzcheck-python3.patch
@@ -1,53 +1,3 @@
-diff -ur ktoblzcheck-1.28/py-compile ktoblzcheck-1.28.my/py-compile
---- ktoblzcheck-1.28/py-compile 2008-03-11 09:29:51.000000000 +0000
-+++ ktoblzcheck-1.28.my/py-compile 2010-09-20 09:09:53.000000000 +0000
-@@ -107,34 +107,30 @@
-
- files = '''$files'''
-
--print 'Byte-compiling python modules...'
--for file in string.split(files):
-+print('Byte-compiling python modules...')
-+for file in files.split():
- $pathtrans
- $filetrans
-- if not os.path.exists(filepath) or not (len(filepath) >= 3
-- and filepath[-3:] == '.py'):
-- continue
-- print file,
-- sys.stdout.flush()
-+ if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'):
-+ continue
-+ print(file, sys.stdout.flush())
- py_compile.compile(filepath, filepath + 'c', path)
--print" || exit $?
-+print()" || exit $?
-
- # this will fail for python < 1.5, but that doesn't matter ...
- $PYTHON -O -c "
- import sys, os, string, py_compile
-
- files = '''$files'''
--print 'Byte-compiling python modules (optimized versions) ...'
--for file in string.split(files):
-+print('Byte-compiling python modules (optimized versions) ...')
-+for file in files.split():
- $pathtrans
- $filetrans
-- if not os.path.exists(filepath) or not (len(filepath) >= 3
-- and filepath[-3:] == '.py'):
-- continue
-- print file,
-- sys.stdout.flush()
-+ if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'):
-+ continue
-+ print(file,sys.stdout.flush())
- py_compile.compile(filepath, filepath + 'o', path)
--print" 2>/dev/null || :
-+print()" 2>/dev/null || :
-
- # Local Variables:
- # mode: shell-script
diff -ur ktoblzcheck-1.28/src/python/ktoblzcheck.py ktoblzcheck-1.28.my/src/python/ktoblzcheck.py
--- ktoblzcheck-1.28/src/python/ktoblzcheck.py 2008-08-12 16:48:54.000000000 +0000
+++ ktoblzcheck-1.28.my/src/python/ktoblzcheck.py 2010-09-20 09:08:36.000000000 +0000