Date: Thursday, April 21, 2022 @ 05:22:53 Author: polyzen Revision: 1187208
archrelease: copy trunk to community-any Added: rstcheck/repos/community-any/PKGBUILD (from rev 1187207, rstcheck/trunk/PKGBUILD) Deleted: rstcheck/repos/community-any/PKGBUILD ----------+ PKGBUILD | 81 +++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 34 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-04-21 05:22:29 UTC (rev 1187207) +++ PKGBUILD 2022-04-21 05:22:53 UTC (rev 1187208) @@ -1,34 +0,0 @@ -# Maintainer: Daniel M. Capella <poly...@archlinux.org> - -pkgname=rstcheck -pkgver=3.5.0 -pkgrel=1 -pkgdesc='Checks syntax of reStructuredText and code blocks nested within it' -arch=('any') -url=https://github.com/myint/rstcheck -license=('MIT') -depends=('python-docutils') -makedepends=('python-setuptools') -checkdepends=('python-sphinx') -optdepends=('python-sphinx: Sphinx support') -source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") -sha256sums=('d4b035300b7d898403544f38c3a4980171ce85f487d25e188347bbafb6ee58c0') -b2sums=('f773ccac6f98a317b195c0e6d948fd637fb5e93e187b64614f92aa315ed21e112e1c7ba9850500ce02210543388b716ffe1a58f5ef2a387697ed98d75fb4be40') - -build() { - cd rstcheck-$pkgver - python setup.py build -} - -check() { - cd rstcheck-$pkgver - ./test_rstcheck.py -} - -package() { - cd rstcheck-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 -t "$pkgdir"/usr/share/licenses/rstcheck LICENSE -} - -# vim:set ts=2 sw=2 et: Copied: rstcheck/repos/community-any/PKGBUILD (from rev 1187207, rstcheck/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-04-21 05:22:53 UTC (rev 1187208) @@ -0,0 +1,47 @@ +# Maintainer: Daniel M. Capella <poly...@archlinux.org> + +pkgname=rstcheck +pkgver=5.0.0 +pkgrel=1 +pkgdesc='Checks syntax of reStructuredText and code blocks nested within it' +arch=('any') +url=https://github.com/myint/rstcheck +license=('MIT') +depends=('python-docutils' 'python-typing_extensions') +makedepends=('python-build' 'python-installer' 'python-poetry-core') +checkdepends=('python-pytest' 'python-sphinx') +optdepends=('python-sphinx: for Sphinx support') +source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") +sha256sums=('c0c4e44ebb630a7f1ff61d8fc26adc7d49c16fcd4ba85e3ea5542b864cf982e4') +b2sums=('b3d8d92055a27e6823e215ad08011fbc3ba5d1dab7aac0b176d154328067ebf991af003c8c59c49fd76b02542b316e7c9af09b22fa48613e0b501755934b4ae7') + +prepare() { + cd $pkgname-$pkgver + # Remove include list https://github.com/pypa/wheel/issues/92 + sed -i '/^include =/d' pyproject.toml +} + +build() { + cd $pkgname-$pkgver + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd $pkgname-$pkgver + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest +} + +package() { + cd $pkgname-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl + + # Symlink license file + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s "$site_packages"/$pkgname-$pkgver.dist-info/LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: