socket

LOW
maintainer IuseAURBTW 1 votes scanned 2026-08-24 15:23:42.374088
View on AUR
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

1pkgname=socket
2pkgver=1.1.159
3pkgrel=1
4pkgdesc='Command-line interface for socket.dev security analysis, compiled from source'
5arch=('x86_64' 'aarch64')
6url='https://github.com/SocketDev/socket-cli'
7license=('MIT')
8depends=('nodejs')
9makedepends=('pnpm')
10conflicts=(
11 'socket-cli'
12 'socket-cli-bin'
13 'socket-cli-git'
14 'socket-bin'
15 'socket-git'
16)
17provides=('socket-cli')
18source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
19sha256sums=('7b69a112ff0a22f9de122c6dcd05d441bd57837b2938f31777610e297ca3c74c')
20
21build() {
22 cd "${srcdir}/socket-cli-${pkgver}"
23
24 pnpm install --frozen-lockfile --ignore-scripts
25 pnpm run build
26 pnpm prune --prod --ignore-scripts
27}
28
29package() {
30 local node_modules_dir="${pkgdir}/usr/lib/node_modules/socket"
31
32 cd "${srcdir}/socket-cli-${pkgver}"
33
34 install -d "${node_modules_dir}"
35 install -d "${pkgdir}/usr/bin"
36
37 cp -a bin dist external shadow-bin node_modules "${node_modules_dir}/"
38 install -Dm644 package.json "${node_modules_dir}/package.json"
39 install -Dm644 requirements.json "${node_modules_dir}/requirements.json"
40 install -Dm644 translations.json "${node_modules_dir}/translations.json"
41 install -Dm644 CHANGELOG.md "${node_modules_dir}/CHANGELOG.md"
42 install -Dm644 DISCLOSURE "${node_modules_dir}/DISCLOSURE"
43
44 ln -s '/usr/lib/node_modules/socket/bin/cli.js' "${pkgdir}/usr/bin/socket"
45 ln -s '/usr/lib/node_modules/socket/bin/npm-cli.js' "${pkgdir}/usr/bin/socket-npm"
46 ln -s '/usr/lib/node_modules/socket/bin/npx-cli.js' "${pkgdir}/usr/bin/socket-npx"
47 ln -s '/usr/lib/node_modules/socket/bin/pnpm-cli.js' "${pkgdir}/usr/bin/socket-pnpm"
48 ln -s '/usr/lib/node_modules/socket/bin/yarn-cli.js' "${pkgdir}/usr/bin/socket-yarn"
49}
50

Scan history

Scanned at (UTC)SeverityRules
2026-08-24 15:23:42 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion