blob: bb3cedf15ef01133dbdc922c28036069aec05ef6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Contributor: Nguyễn Quang Minh <minhnbnt at gmail dot com>
pkgname=basedpyright-bin
pkgver=1.28.5
pkgrel=1
pkgdesc='pyright fork with various type checking improvement and pylance features'
arch=("any")
url='https://github.com/DetachHead/basedpyright'
license=('MIT')
depends=("nodejs")
options=('!strip')
provides=('basedpyright')
source=("https://registry.npmjs.org/basedpyright/-/basedpyright-${pkgver}.tgz")
sha256sums=('4a218b86d151d4da7016cf1991252d6c25d7e8f1e2d717b216229c3d6fb74657')
package() {
local target="${pkgdir}/usr/lib/${pkgname/-bin/}"
mkdir -p $target
cd "${srcdir}/package/"
cp -r "dist/" "index.js" "langserver.index.js" "$target"
mkdir -p "${pkgdir}/usr/bin/"
ln -sr "${target}/index.js" "${pkgdir}/usr/bin/basedpyright"
ln -sr "${target}/langserver.index.js" "${pkgdir}/usr/bin/basedpyright-langserver"
install -Dm644 "${srcdir}/package/LICENSE.txt" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt"
chown -R root:root "$pkgdir"
chmod -R u=rwX,go=rX "$target"
}
|