[arch-commits] Commit in vint/repos/community-any (PKGBUILD PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Sep 6 22:26:00 UTC 2022


    Date: Tuesday, September 6, 2022 @ 22:26:00
  Author: polyzen
Revision: 1295994

archrelease: copy trunk to community-any

Added:
  vint/repos/community-any/PKGBUILD
    (from rev 1295993, vint/trunk/PKGBUILD)
Deleted:
  vint/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   72 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 38 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-06 22:25:41 UTC (rev 1295993)
+++ PKGBUILD	2022-09-06 22:26:00 UTC (rev 1295994)
@@ -1,34 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Darshit Shah <darnir at gmail.com>
-
-pkgname=vint
-pkgver=0.3.20
-pkgrel=4
-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')
-checkdepends=('python-pytest')
-conflicts=('python-vint')
-replaces=('python-vint')
-source=("$url/archive/v$pkgver/vint-v$pkgver.tar.gz")
-sha512sums=('a71437cf20361d86fccfdccc05bebd30b40941ebbf65d587eb158d5e4ed3fdcb807b2291de082df7b9f66f4ccf1832ee0797156133a6c152536bd1915ffc4da4')
-
-build() {
-  cd vint-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd vint-$pkgver
-  pytest
-}
-
-package() {
-  cd vint-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: vint/repos/community-any/PKGBUILD (from rev 1295993, vint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-06 22:26:00 UTC (rev 1295994)
@@ -0,0 +1,38 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Darshit Shah <darnir at gmail.com>
+
+pkgname=vint
+pkgver=0.3.20
+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')
+source=("$url/archive/v$pkgver/vint-v$pkgver.tar.gz")
+sha512sums=('a71437cf20361d86fccfdccc05bebd30b40941ebbf65d587eb158d5e4ed3fdcb807b2291de082df7b9f66f4ccf1832ee0797156133a6c152536bd1915ffc4da4')
+
+build() {
+  cd vint-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd vint-$pkgver
+  pytest
+}
+
+package() {
+  cd vint-$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/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