summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44b4936909da2c8d73ddc236ce7bd1434e182f2d (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
# Maintainer: fenuks

pkgname=javascript-typescript-langserver
pkgver=2.11.3
pkgrel=1
pkgdesc="JavaScript and TypeScript code intelligence through the Language Server Protocol"
arch=('any')
depends=('typescript')
makedepends=('npm')
url="https://github.com/sourcegraph/javascript-typescript-langserver"
license=('APACHE')
# source=(https://registry.npmjs.org/${pkgname}/-/${pkgname}-$pkgver.tgz)
source=(${pkgname}-${pkgver}.tgz::https://github.com/sourcegraph/${pkgname}/archive/v${pkgver}.tar.gz)
# noextract=(${pkgname}-${pkgver}.tgz)
sha256sums=('90007aa12f16e08bbd50e90736ce94ac59465b86608d3b26f6e1d3822680160d')
options=('!emptydirs')
provides=()
conflicts=()

package() {
    local _npmdir="${pkgdir}/usr/lib/node_modules/"
    mkdir -p "${_npmdir}"
    cd "${_npmdir}"
    npm install -g --user root --prefix "${pkgdir}"/usr --cache "${srcdir}/npm-cache" ${pkgname}@${pkgver}

    # npm install -g --user root --cache "${srcdir}/npm-cache" --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
}