archrelease: copy trunk to community-any
[arch-community.git] / python-sepaxml / trunk / PKGBUILD
blob1cc52b4fb1584295f156fa7f8c8e394ba5ad3cff
1 # Maintainer: kpcyrd <git@rxv.cc>
3 pkgname=python-sepaxml
4 pkgver=2.6.1
5 pkgrel=1
6 pkgdesc="SEPA Direct Debit XML generation in python"
7 arch=(any)
8 url="https://github.com/raphaelm/python-sepaxml"
9 license=('MIT')
10 depends=('python' 'python-lxml' 'python-text-unidecode' 'python-xmlschema')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest')
13 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/raphaelm/python-sepaxml/archive/${pkgver}.tar.gz)
14 sha512sums=('fef5ba7116fb2c9581213f9eb0b3cf7deda8683441b0da95fbecbe6cf174d2cfdc3d2b58031156693500bde809d0f343ee947a4328ad6891a1cb7f6eedb36b3a')
15 b2sums=('e2f8794a24d4add0e42b43fb8a1269d21676769870c4dc3e87ebdb26aca0aa76541cefa602b5b606efe993671fb13344f98d7af5b7c629b5a9ec26b7293641be')
17 build() {
18   cd "${pkgname}-${pkgver}"
19   python setup.py build
22 check() {
23   cd "${pkgname}-${pkgver}"
24   PYTHONPATH=. pytest
27 package() {
28   cd "${pkgname}-${pkgver}"
29   python setup.py install -O1 --root="${pkgdir}" --skip-build
31   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
34 # vim:set ts=2 sw=2 et: