37 lines
936 B
Bash
37 lines
936 B
Bash
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
|
|
|
_pyname=trove-classifiers
|
|
pkgname=python-trove-classifiers
|
|
pkgver=2024.1.8
|
|
pkgrel=1
|
|
pkgdesc="Canonical source for classifiers on PyPI (pypi.org)"
|
|
arch=('any')
|
|
url="https://github.com/pypa/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=('6e36caf430ff6485c4b57a4c6b364a13f6a898d16b9417c6c37467e59c14b05a')
|
|
|
|
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"
|
|
}
|