1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=dot-language-server
6 pkgdesc="A language server for the DOT language"
8 url="https://github.com/nikeee/dot-language-server"
12 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
13 sha512sums=('eb1b79820c7ff3fb83a38c86670be17561e9d04ac6c8311f2694502d1b18dc8bd789885bfccc09e94636796af929cec1f77fd0cbdd2e2ec64e6a2c50a9f1ddcd')
14 b2sums=('20a8614b8582e76123f06c1ba06b2403a96cf5fa65ecdea67ed38b38993158df5a1d8ac3527102f6699b729054970c6bf7744ecca19019ec7b0396e1c2c85215')
18 npm install --cache "$srcdir"/npm-cache
28 -iname '*Makefile*' -o
29 -iname '*appveyor.yml' -o
32 -iname '*bower.json' -o
37 -iname '*.markdown' -o
40 -iname '*.npmignore' -o
41 -iname '*.editorconfig' -o
43 -iname '*.eslintignore' -o
44 -iname '*.eslintrc*' -o
45 -iname '*.fimbullinter.yaml' -o
46 -iname '*.gitattributes' -o
47 -iname '*.gitignore' -o
48 -iname '*.gitmodules' -o
51 -iname '*.jshintrc' -o
52 -iname '*.jscs.json' -o
57 -iname '*package-lock.json' -o
58 -iname '*.travis.yml' -o
59 -iname '*.prettierrc' -o
62 -iname '*.tm_properties' -o
63 -iname '*.wotanrc.yaml' -o
64 -iname '*tsconfig.json' -o
68 -iwholename '*.github' -o
69 -iwholename '*.idea' -o
70 -iwholename '*.tscache' -o
71 -iwholename '*/man' -o
72 -iwholename '*/test' -o
73 -iwholename '*/scripts' -o
74 -iwholename '*/git-hooks'
78 # remove unneeded files
79 find node_modules -type f \( "${find_files[@]}" \) -delete
80 find node_modules -type d \( "${find_dirs[@]}" \) -exec rm -rvf {} +
82 install -vdm 755 "$pkgdir/usr/lib/node_modules/$pkgname/"
83 # copy vendored modules, lib and entry point
84 cp -av {bin,doc,lib,node_modules,package.json} "$pkgdir/usr/lib/node_modules/$pkgname/"
85 install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
86 install -vdm 755 "$pkgdir/usr/bin/"
87 ln -sv /usr/lib/node_modules/$pkgname/bin/server.js "$pkgdir/usr/bin/$pkgname"