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

Daniel M. Capella polyzen at archlinux.org
Wed Jun 2 21:08:24 UTC 2021


    Date: Wednesday, June 2, 2021 @ 21:08:24
  Author: polyzen
Revision: 953443

Initial commit

Added:
  pyright/
  pyright/repos/
  pyright/trunk/
  pyright/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: pyright/trunk/PKGBUILD
===================================================================
--- pyright/trunk/PKGBUILD	                        (rev 0)
+++ pyright/trunk/PKGBUILD	2021-06-02 21:08:24 UTC (rev 953443)
@@ -0,0 +1,39 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Kaizhao Zhang <zhangkaizhao at gmail.com>
+
+pkgname=pyright
+pkgver=1.1.146
+pkgrel=1
+pkgdesc='Type checker for the Python language'
+arch=('any')
+url=https://github.com/microsoft/pyright
+license=('MIT')
+depends=('nodejs>=12')
+makedepends=('npm')
+source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+b2sums=('f101d069da24f3f22b735092c11f6799fdb3152077fe668b73555e1478d1c1bc11cd82bb8146a1bf703abb68d52fb2a44fff28ce3432ffc0b822cec7d3e95200')
+
+build() {
+  cd $pkgname-$pkgver
+  npm ci
+  cd packages/$pkgname
+  npm run build
+}
+
+package() {
+  install -d "$pkgdir"/usr/bin
+  ln -s ../lib/node_modules/$pkgname/index.js "$pkgdir"/usr/bin/$pkgname
+  ln -s ../lib/node_modules/$pkgname/langserver.index.js \
+    "$pkgdir"/usr/bin/$pkgname-langserver
+
+  cd $pkgname-$pkgver
+  install -d "$pkgdir"/usr/share/doc/$pkgname
+  cp -r {CONTRIBUTING,README}.md docs "$pkgdir"/usr/share/doc/$pkgname
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE.txt
+
+  cd packages/$pkgname
+  install -d "$pkgdir"/usr/lib/node_modules/$pkgname
+  cp -r dist {,langserver.}index.js "$pkgdir"/usr/lib/node_modules/$pkgname
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list