34 lines
949 B
Bash
34 lines
949 B
Bash
# Contributor: Mehdi Chinoune <mehdi.chinoune@hotmail.com>
|
|
|
|
_realname=hatch-fancy-pypi-readme
|
|
pkgbase=python-hatch-fancy-pypi-readme
|
|
pkgname=("python-${_realname}")
|
|
pkgver=22.8.0
|
|
pkgrel=1
|
|
pkgdesc="Fancy PyPI READMEs with Hatch"
|
|
arch=('any')
|
|
license=('spdx:MIT')
|
|
url="https://github.com/hynek/hatch-fancy-pypi-readme"
|
|
depends=('python'
|
|
'python-hatchling'
|
|
'python-tomli')
|
|
makedepends=(
|
|
'python-build'
|
|
'python-installer'
|
|
)
|
|
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname//-/_}-${pkgver}.tar.gz")
|
|
sha256sums=('da91282ca09601c18aded8e378daf8b578c70214866f0971156ee9bb9ce6c26a')
|
|
|
|
build() {
|
|
cd "${srcdir}/${_realname//-/_}-${pkgver}"
|
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_realname//-/_}-${pkgver}"
|
|
|
|
python -m installer --destdir="${pkgdir}" dist/*.whl
|
|
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|