[arch-commits] Commit in vint/trunk (PKGBUILD)

2022-09-06 Thread Daniel M. Capella via arch-commits
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
===
--- PKGBUILD2022-09-06 22:25:24 UTC (rev 1295992)
+++ PKGBUILD2022-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
 }



[arch-commits] Commit in vint/trunk (PKGBUILD)

2021-12-02 Thread Felix Yan via arch-commits
Date: Thursday, December 2, 2021 @ 23:28:16
  Author: felixonmars
Revision: 1063035

upgpkg: vint 0.3.20-4: Python 3.10 rebuild

Modified:
  vint/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-12-02 23:28:15 UTC (rev 1063034)
+++ PKGBUILD2021-12-02 23:28:16 UTC (rev 1063035)
@@ -3,7 +3,7 @@
 
 pkgname=vint
 pkgver=0.3.20
-pkgrel=3
+pkgrel=4
 pkgdesc='Lint tool for Vim script Language'
 arch=('any')
 url=https://github.com/Vimjas/vint