# $Id: PKGBUILD 348354 2018-06-30 15:53:52Z foutrelis $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Philipp Sandhaus <philipp.sandhaus@gmx.de>

pkgname=ktoblzcheck
pkgver=1.49
pkgrel=2
pkgdesc="A library to check account numbers and bank codes of German banks"
arch=(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)
sha256sums=('e8971bc6689ea72b174c194bd43ba2c0b65112b0c3f9fd2371562e0c3ab57d29')

prepare() {
  cd "$srcdir/ktoblzcheck-$pkgver"
  sed -i 's|\t|        |g' src/python/ktoblzcheck.py
}

build() {
  cd "$srcdir/ktoblzcheck-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/ktoblzcheck-$pkgver"
  make DESTDIR="$pkgdir" install
}
