summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f5332a02807e14905373a5292107aa6b4a1b300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Chris Warrick <aur@chriswarrick.com>

_pyname=pyroma
pkgname=python-${_pyname}
pkgver=4.2
pkgrel=1
pkgdesc="Test your project's packaging friendliness"
arch=('any')
url="https://github.com/regebro/${_pyname}"
license=('BSD')
depends=('python' 'python-docutils' 'python-requests' 'python-pygments' 
	'python-trove-classifiers' 'python-setuptools' 'python-build' 'python-packaging')
makedepends=('python-installer' 'python-wheel')
options=(!emptydirs)
source=("${_pyname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('06b3c288345e6c0b4c98269d1ad6dfc2807d87fcda3131af682850bb4c9d6db7')

_srcdir="${_pyname}-${pkgver}"

build() {
	cd "$_srcdir"
	python -m build --wheel --no-isolation
}

package() {
	cd "$_srcdir"
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 'LICENSE.txt' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}