tui2web

LOW
maintainer Dominiquini 1 votes scanned 2026-09-27 03:16:18.279095
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

1# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
2
3pkgauthor="czhu12"
4pkgname="tui2web"
5pkgdesc="Open any terminal program on your phone"
6pkgver=0.4.0
7pkgrel=1
8arch=("x86_64")
9url="https://github.com/${pkgauthor}/${pkgname}"
10_urlraw="https://raw.githubusercontent.com/${pkgauthor}/${pkgname}/v${pkgver}"
11license=("MIT")
12
13_npmname=${pkgname}
14_npmver=${pkgver}
15
16depends=("glibc" "libgcc" "libstdc++" "nodejs")
17makedepends=("npm" "jq")
18provides=("${_npmname}")
19
20options=('!strip' 'emptydirs' 'staticlibs' 'zipman')
21noextract=("${pkgname}-${pkgver}.tgz")
22
23source=("${pkgname}-${pkgver}.tgz::https://registry.npmjs.org/${_npmname}/-/${_npmname}-${_npmver}.tgz")
24b2sums=('db3d1dc00842b84ad0fa69ffd37b9571c384cb0e612f7446b33b238bd06b2f076a449b1b7fef1001da7a68b6da3f08ad17953a4d0bec030f1ee7d20341653de9')
25
26# Document: https://wiki.archlinux.org/title/Node.js_package_guidelines
27package() {
28 msg2 "Install using Using npm"
29 npm install -s -g \
30 --cache "${srcdir}/npm-cache" \
31 --prefix "${pkgdir}/usr" \
32 "${srcdir}/${pkgname}-${pkgver}.tgz"
33
34 msg2 "Fix ownership of ALL FILES"
35 find "${pkgdir}/usr" -type d -exec chmod 755 {} +
36 chown -R root:root "${pkgdir}"
37
38 msg2 "Remove references to ${pkgdir}"
39 find "${pkgdir}" -name package.json -print0 | xargs -r -0 sed -i '/_where/d'
40
41 local tmppackage="$(mktemp)"
42 local pkgjson="${pkgdir}/usr/lib/node_modules/${_npmname}/package.json"
43 jq '.|=with_entries(select(.key|test("_.+")|not))' "${pkgjson}" > "${tmppackage}"
44 mv "${tmppackage}" "${pkgjson}"
45 chmod 644 "${pkgjson}"
46
47 find "${pkgdir}" -type f -name package.json | while read pkgjson; do
48 local tmppackage="$(mktemp)"
49 jq 'del(.man)' "${pkgjson}" > "${tmppackage}"
50 mv "${tmppackage}" "${pkgjson}"
51 chmod 644 "${pkgjson}"
52 done
53
54 msg2 "Install README file"
55 install -dm755 "${pkgdir}/usr/share/doc/${pkgname}/"
56 ln -sf "/usr/lib/node_modules/${_npmname}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
57
58 msg2 "Install LICENSE file"
59 install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
60 ln -sf "/usr/lib/node_modules/${_npmname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
61}
62

Scan history

Scanned at (UTC)SeverityRules
2026-09-27 03:16:18 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