# $Id: PKGBUILD 125744 2015-01-11 12:35:03Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Philipp Sandhaus <philipp.sandhaus@gmx.de>

pkgname=ktoblzcheck
pkgver=1.48
pkgrel=1
pkgdesc="A library to check account numbers and bank codes of German banks"
arch=(i686 x86_64)
url="http://ktoblzcheck.sourceforge.net"
license=("LGPL")
depends=('gcc-libs' 'python')
optdepends=('perl')
source=(http://downloads.sourceforge.net/sourceforge/ktoblzcheck/ktoblzcheck-$pkgver.tar.gz
	ktoblzcheck-python3.patch)
md5sums=('6f56c83a649cbdaf1aad3e04a7b7a8ce'
         '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
}
