[arch-commits] Commit in vint/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 22:25:42 UTC 2022
Date: Tuesday, September 6, 2022 @ 22:25:41
Author: polyzen
Revision: 1295993
upgpkg: vint 0.3.20-5: Use PEP 517
Modified:
vint/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 22:25:24 UTC (rev 1295992)
+++ PKGBUILD 2022-09-06 22:25:41 UTC (rev 1295993)
@@ -3,12 +3,13 @@
pkgname=vint
pkgver=0.3.20
-pkgrel=4
+pkgrel=5
pkgdesc='Lint tool for Vim script Language'
arch=('any')
url=https://github.com/Vimjas/vint
license=('MIT')
depends=('python-ansicolor' 'python-chardet' 'python-setuptools' 'python-yaml')
+makedepends=('python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
conflicts=('python-vint')
replaces=('python-vint')
@@ -17,7 +18,7 @@
build() {
cd vint-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -27,6 +28,11 @@
package() {
cd vint-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ 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/vint
+ ln -s "$site_packages"/vint-$pkgver.dist-info/LICENSE.txt \
+ "$pkgdir"/usr/share/licenses/vint/LICENSE.txt
}
More information about the arch-commits
mailing list