sparql-language-server
LOW
maintainer calwe
0 votes
scanned 2026-09-23 09:40:25.835658
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Callum Webb <spikywebb@gmail.com>
2
3
pkgname=sparql-language-server
4
pkgver=4.3.0
5
pkgrel=1
6
_commit=d3e39c4c876ff276da9e36e73f9f6376b36da849
7
pkgdesc="Language server providing autocomplete, diagnostics and hover tooltips for SPARQL, including W3C standard SPARQL and Stardog extensions"
8
arch=('any')
9
url="https://github.com/stardog-union/stardog-language-servers"
10
license=('Apache-2.0')
11
depends=('nodejs')
12
makedepends=('npm' 'jq')
13
source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz"
14
"LICENSE-$pkgver::$url/raw/$_commit/LICENSE")
15
noextract=("$pkgname-$pkgver.tgz")
16
sha256sums=('60fde1bb23ead303c8efe1d3ee8d8a15c6e90fd42cdd0c3ae2982ce5502693ec'
17
'fcd336454f2450ed91604bcaa9fbb5f9e73cdd6081ac991d468f5e6e07c3fd4a')
18
19
package() {
20
npm install -g \
21
--prefix "$pkgdir/usr" \
22
--cache "$srcdir/npm-cache" \
23
"$srcdir/$pkgname-$pkgver.tgz"
24
25
# npm gives ownership of ALL FILES to build user
26
# https://bugs.archlinux.org/task/63396
27
chown -R root:root "$pkgdir"
28
29
# Non-deterministic race in npm gives 777 permissions to random directories
30
# https://github.com/npm/cli/issues/1103
31
find "$pkgdir" -type d -exec chmod 755 {} +
32
33
# Strip the build directory out of the installed package.json files
34
local pkgjson
35
while IFS= read -r -d '' pkgjson; do
36
local tmp
37
tmp="$(mktemp)"
38
jq 'with_entries(select(.key | startswith("_") | not))' "$pkgjson" >"$tmp"
39
mv "$tmp" "$pkgjson"
40
chmod 644 "$pkgjson"
41
done < <(find "$pkgdir/usr/lib/node_modules" -name package.json -print0)
42
43
install -Dm644 "$srcdir/LICENSE-$pkgver" \
44
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
45
}
46
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-23 09:40:25 | Low | 1 |