Date: Sunday, January 22, 2023 @ 07:22:18 Author: grawlinson Revision: 1387656
addpkg: python-dist-meta 0.6.0-1 Added: python-dist-meta/ python-dist-meta/repos/ python-dist-meta/trunk/ python-dist-meta/trunk/PKGBUILD ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Added: python-dist-meta/trunk/PKGBUILD =================================================================== --- python-dist-meta/trunk/PKGBUILD (rev 0) +++ python-dist-meta/trunk/PKGBUILD 2023-01-22 07:22:18 UTC (rev 1387656) @@ -0,0 +1,48 @@ +# Maintainer: George Rawlinson <[email protected]> + +pkgname=python-dist-meta +pkgver=0.6.0 +pkgrel=1 +pkgdesc='Parse and create Python distribution metadata' +arch=('any') +url='https://dist-meta.readthedocs.io/' +license=('MIT') +depends=( + 'python' + 'python-domdf-python-tools' + 'python-handy-archives' + 'python-packaging' +) +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-wheel' + 'python-setuptools' +) +#checkdepends=('') +#optdepends=('') +_commit='fc32a6abee90b5195eee4611a105e96f5b192245' +source=("$pkgname::git+https://github.com/repo-helper/dist-meta#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgname" + + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" dist/*.whl + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +}
