summaryrefslogtreecommitdiff
path: root/community/ktoblzcheck
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-17 00:58:52 -0700
committerroot <root@rshg054.dnsready.net>2013-07-17 00:58:52 -0700
commitdee9f17b595ea903a982d31d1124b302bb17e2ff (patch)
tree295fdab78e28e1952fbc13ce824d57c88ede4e3b /community/ktoblzcheck
parent380530d02a5449fdef97b63b394a6743c3de0092 (diff)
Wed Jul 17 00:58:51 PDT 2013
Diffstat (limited to 'community/ktoblzcheck')
-rw-r--r--community/ktoblzcheck/PKGBUILD30
-rw-r--r--community/ktoblzcheck/ktoblzcheck-python3.patch57
2 files changed, 0 insertions, 87 deletions
diff --git a/community/ktoblzcheck/PKGBUILD b/community/ktoblzcheck/PKGBUILD
deleted file mode 100644
index 87f25f0c7..000000000
--- a/community/ktoblzcheck/PKGBUILD
+++ /dev/null
@@ -1,30 +0,0 @@
-# $Id: PKGBUILD 92372 2013-06-04 12:30:22Z spupykin $
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
-# Contributor: Philipp Sandhaus <philipp.sandhaus@gmx.de>
-
-pkgname=ktoblzcheck
-pkgver=1.42
-pkgrel=1
-pkgdesc="A library to check account numbers and bank codes of German banks"
-arch=(i686 x86_64)
-url="http://ktoblzcheck.sourceforge.net"
-options=('!libtool')
-license=("LGPL")
-depends=('gcc-libs' 'python')
-optdepends=('perl')
-source=(http://downloads.sourceforge.net/sourceforge/ktoblzcheck/ktoblzcheck-$pkgver.tar.gz
- ktoblzcheck-python3.patch)
-md5sums=('86f25d5c6a07313638bb74d6b11eb57c'
- 'a81a697bb3aaeffb7fac0ad7d9166e3f')
-
-build() {
- cd "$srcdir/ktoblzcheck-$pkgver"
- ./configure --prefix=/usr
- 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
deleted file mode 100644
index 5bfc53275..000000000
--- a/community/ktoblzcheck/ktoblzcheck-python3.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-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
-@@ -197,35 +197,35 @@
-
- def test():
- a = AccountNumberCheck()
-- print 'Number of Banks:', a.bankCount
-- print 'find 20010020:', a.findBank('20010020')
-- print 'find 20010033:', a.findBank('20010033')
-- print 'check 20070024/9291394:', a.check('20070024','9291394')
-- print 'check 20070024/9291394:', a.check('20070024','9291394023')
-- print
-+ print('Number of Banks:', a.bankCount)
-+ print('find 20010020:', a.findBank('20010020'))
-+ print('find 20010033:', a.findBank('20010033'))
-+ print('check 20070024/9291394:', a.check('20070024','9291394'))
-+ print('check 20070024/9291394:', a.check('20070024','9291394023'))
-+ print()
- ck = IbanCheck()
- if not kto.IbanCheck_selftest(ck): # not publicly defined
-- print "Self-Test failed!"
-+ print("Self-Test failed!")
- raise SystemExit
- s = " iban fr14 2004 1010 0505 0001 3m02 606"
-- print "test for iban :", s
-+ print("test for iban :", s)
- iban = Iban(s)
-- print "transmission form:", iban.transmissionForm()
-+ print("transmission form:", iban.transmissionForm())
- res = ck.check(iban)
-- print "check result :", res, "("+IbanCheck.resultText(res)+")"
-- print "printable form :", iban.printableForm()
-- print
-- print "expect bad checksum:"
-+ print("check result :", res, "("+IbanCheck.resultText(res)+")")
-+ print("printable form :", iban.printableForm())
-+ print()
-+ print("expect bad checksum:")
- s = "FR1420041010050500013X02606"
- res = ck.check(s)
-- print s + ":", res, "("+IbanCheck.resultText(res)+")"
-- print
-+ print(s + ":", res, "("+IbanCheck.resultText(res)+")")
-+ print()
- s = "IBAN DE66 2007 0024 0929 1394 00"
-- print s
-+ print(s)
- s = Iban(s).transmissionForm()
- start, end = ck.bic_position(s)
-- print "prefix, checksum, BIC, account:"
-- print ', '.join((s[:2], s[2:4], s[start:end], s[end:].lstrip('0')))
-+ print("prefix, checksum, BIC, account:")
-+ print(', '.join((s[:2], s[2:4], s[start:end], s[end:].lstrip('0'))))
-
-
- if __name__ == '__main__':