2023-05-10 17:58:39 +02:00
|
|
|
# Template file for 'pyright'
|
|
|
|
pkgname=pyright
|
2023-05-15 22:18:08 +02:00
|
|
|
version=1.1.308
|
2023-05-10 17:58:39 +02:00
|
|
|
revision=1
|
|
|
|
build_wrksrc="packages/pyright"
|
|
|
|
hostmakedepends="nodejs python3"
|
|
|
|
depends="nodejs"
|
|
|
|
short_desc="Static type checker and language server for Python"
|
|
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://microsoft.github.io/pyright"
|
|
|
|
changelog="https://github.com/microsoft/pyright/releases"
|
|
|
|
distfiles="https://github.com/microsoft/pyright/archive/refs/tags/${version}.tar.gz"
|
2023-05-15 22:18:08 +02:00
|
|
|
checksum=1bd080770fd4f6c9e4ec2e3b488b30e91ba57ec5e23dddc630f5cb2df66e6253
|
2023-05-10 17:58:39 +02:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
cd "$wrksrc"
|
|
|
|
npm ci
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
npm run build
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
local _targetdir="/usr/lib/pyright"
|
|
|
|
vmkdir "$_targetdir"
|
|
|
|
vinstall index.js 755 "$_targetdir"
|
|
|
|
vinstall langserver.index.js 755 "$_targetdir"
|
|
|
|
vinstall package.json 644 "$_targetdir"
|
|
|
|
vcopy dist "$_targetdir"
|
|
|
|
|
|
|
|
vmkdir /usr/bin
|
|
|
|
ln -s "$_targetdir/index.js" "${DESTDIR}/usr/bin/pyright"
|
|
|
|
ln -s "$_targetdir/langserver.index.js" "${DESTDIR}/usr/bin/pyright-langserver"
|
|
|
|
|
|
|
|
vlicense "$wrksrc/LICENSE.txt"
|
|
|
|
}
|