# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setglobal pkgname = 'py-ibanlib' setglobal _pkgname = 'ibanlib' setglobal pkgver = '0.0.2' setglobal pkgrel = '0' setglobal pkgdesc = '"A Library integrate the International Bank Account Number (IBAN)'" setglobal url = '"https://pypi.python.org/pypi/ibanlib'" setglobal arch = '"noarch'" setglobal license = '"LGPL3+'" setglobal depends = '"python2'" setglobal depends_dev = ''"" setglobal makedepends = '"python2-dev py-setuptools'" setglobal install = ''"" setglobal subpackages = ''"" setglobal source = ""https://files.pythonhosted.org/packages/source/$(_pkgname:0:1)/$_pkgname/$_pkgname-$pkgver.tar.gz"" setglobal _builddir = ""$srcdir"/$_pkgname-$pkgver" proc prepare { local i cd $_builddir for i in [$source] { match $i { with *.patch msg $i; patch -p1 -i "$srcdir"/$i || return 1 } } } proc build { cd $_builddir python2 setup.py build || return 1 } proc package { cd $_builddir python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } setglobal md5sums = '"db5280e16189abcd2075edf704f691e8 ibanlib-0.0.2.tar.gz'" setglobal sha256sums = '"99bdd2bd3bf588b355d090280794e08aae745e33e3cffe276a167cfce11c122e ibanlib-0.0.2.tar.gz'" setglobal sha512sums = '"6673ab2ece07fd27ce3157e8fcfa28b08a06ebdb58a4c356015e0833f6d13e6e238841919bdf2164a30e81ad2b1d050924fec25ba0dc30c46f3c78ff96ea202c ibanlib-0.0.2.tar.gz'"