# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-relatorio
_pkgname=relatorio
pkgver=0.6.1
pkgrel=0
pkgdesc="A templating library able to output odt and pdf files"
url="http://relatorio.openhex.org"
arch="noarch"
license="GPL-3.0-or-later"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/r/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="07e53dca16116963da8166569c6ce5b4  relatorio-0.6.1.tar.gz"
sha256sums="789c0310481ab98cfabb0337b59d8f22d14430a4fdd8c525aa02f8e70389f8b0  relatorio-0.6.1.tar.gz"
sha512sums="ada690a92db6c6bc239a34b1f86f19979a1ccaf6e39c044464c0f40948fd3f584748c2a486bb513d190ef7b0adc01d204e6ecf6e3172761484cf96da9bf4eb38  relatorio-0.6.1.tar.gz"
