2024-03-27 17:37:54 +01:00

41 lines
1002 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=trove-classifiers
pkgname=python-trove-classifiers
pkgver=2024.3.3
pkgrel=1
pkgdesc="Canonical source for classifiers on PyPI (pypi.org)"
arch=('any')
url="https://github.com/pypa/trove-classifiers"
msys2_references=(
"anitya: 88298"
"pypi:trove-classifiers"
)
license=('spdx:Apache-2.0')
depends=(
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
'python-calver'
)
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('df7edff9c67ff86b733628998330b180e81d125b1e096536d83ac0fd79673fdc')
build() {
cd "${_pyname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pyname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}