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

pkgname=python-tracerite
pkgver=1.2.0
pkgrel=1
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-build python-installer python-hatchling)
source=("git+https://github.com/sanic-org/tracerite#tag=v$pkgver")
sha256sums=('23100e6f7c877cdef86b3839a312075e5a00d84a6f7529429f52a80d77d35e46')

build() {
    cd tracerite
    python -m build --wheel --no-isolation
}

package() {
    cd tracerite
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
