archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-trove-classifiers / repos / extra-any / PKGBUILD
blob9f3e597f1c3124359944a45e7ef8d9481dec3096
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-trove-classifiers
4 pkgver=2022.8.7
5 pkgrel=1
6 pkgdesc="Canonical source for classifiers on PyPI (pypi.org)"
7 url="https://github.com/pypa/trove-classifiers"
8 license=('Apache')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-calver' 'python-setuptools')
12 checkdepends=('python-pytest')
13 source=("https://github.com/pypa/trove-classifiers/archive/$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('61b776e2c4cb79788a14c17cf10f3cafaa3364bce3927e0e328b2129b65efdac9948e54d74e4454df3a094b25e6eb23074b577c5eb5735cc1939342f5c5d06ce')
16 prepare() {
17   cd trove-classifiers-$pkgver
18   echo "Version: $pkgver" > PKG-INFO
21 build() {
22   cd trove-classifiers-$pkgver
23   python setup.py build
26 check() {
27   cd trove-classifiers-$pkgver
28   pytest
29   PYTHONPATH="$PWD"/build/lib python -m tests.lib
32 package() {
33   cd trove-classifiers-$pkgver
34   python setup.py install --root="$pkgdir" --optimize=1