# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-tracerite
pkgver=1.1.3
pkgrel=2
pkgdesc='Pythonic HTML generation/templating (no template files)'
arch=("any")
url='https://github.com/sanic-org/tracerite'
license=(Unlicense)
depends=(python python-html5tagger)
makedepends=(git python-setuptools python-setuptools-scm)
source=("git+https://github.com/sanic-org/tracerite#tag=v$pkgver")
sha256sums=('ac21badd9e4ebff0462d5618b5836ba281be26c93c7e4eae6412f0b641313b08')

build() {
    cd tracerite
    python setup.py build
}

package() {
    cd tracerite
    python setup.py install --skip-build --root="$pkgdir" --optimize=1
    install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
