blob: 64e4bf1c696e4bc9ca2411d17edd772aaec96356 (
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
34
35
36
37
38
39
|
# Maintainer: Callum Parsey <callum@neoninteger.au>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Yufan You <ouuansteve at gmail>
_npmname=dockerfile-language-server-nodejs
pkgname=dockerfile-language-server
pkgver=0.13.0
pkgrel=1
pkgdesc='Language server for Dockerfiles'
arch=('any')
url='https://github.com/rcjsuen/dockerfile-language-server-nodejs'
license=('MIT')
depends=('nodejs')
makedepends=('npm')
replaces=('dockerfile-language-server-bin' 'nodejs-dockerfile-language-server-nodejs')
changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
sha256sums=('2e6a287dcf5de6be2a1c01f149a8c3717fa0bc8a689cc355d94198081779d067')
noextract=("$pkgname-$pkgver.tgz")
PURGE_TARGETS=('CHANGELOG.md')
package() {
export NODE_ENV=production
npm install -g --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" --build-from-source "$pkgname-$pkgver.tgz"
install -d \
"$pkgdir/usr/share/licenses/$pkgname/" \
"$pkgdir/usr/share/doc/$pkgname/"
ln -s \
"/usr/lib/node_modules/$_npmname/License.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
ln -s \
"/usr/lib/node_modules/$_npmname/OriginalLicense.txt" \
"$pkgdir/usr/share/licenses/$pkgname/ORIGINAL_LICENSE"
ln -s \
"/usr/lib/node_modules/$_npmname/README.md" \
"$pkgdir/usr/share/doc/$pkgname/"
chown -R root:root "$pkgdir/"
}
|