#!/usr/bin/env bash name='py3-hatchling' release='1' version='1.18.0' url='https://github.com/pypa/hatch' description=' Modern, extensible Python build backend' email='akarsu@protonmail.com' maintainer='akarsu' license=('MIT') source=("https://github.com/pypa/hatch/archive/refs/tags/hatchling-v${version}.tar.gz") depends=(python) makedepends=(py3-pathspec py3-editables py3-trove-classifiers py3-pluggy) md5sums=('18de98a22f62df1ce02b8ce55aab413a') group=(dev.python) uses=() arch=('x86_64') cd "hatch-hatchling-v"$version build(){ python -m build --wheel --no-isolation backend } package(){ python -m installer --destdir="$DESTDIR" backend/dist/*.whl install -Dm644 README.md "${DESTDIR}/usr/share/doc/${name}/README.md" install -Dm644 backend/LICENSE.txt "${DESTDIR}/usr/share/licenses/${name}/LICENSE.txt" }