tui2web
LOW
maintainer Dominiquini
1 votes
scanned 2026-09-27 03:16:18.279095
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
3
pkgauthor="czhu12"
4
pkgname="tui2web"
5
pkgdesc="Open any terminal program on your phone"
6
pkgver=0.4.0
7
pkgrel=1
8
arch=("x86_64")
9
url="https://github.com/${pkgauthor}/${pkgname}"
10
_urlraw="https://raw.githubusercontent.com/${pkgauthor}/${pkgname}/v${pkgver}"
11
license=("MIT")
12
13
_npmname=${pkgname}
14
_npmver=${pkgver}
15
16
depends=("glibc" "libgcc" "libstdc++" "nodejs")
17
makedepends=("npm" "jq")
18
provides=("${_npmname}")
19
20
options=('!strip' 'emptydirs' 'staticlibs' 'zipman')
21
noextract=("${pkgname}-${pkgver}.tgz")
22
23
source=("${pkgname}-${pkgver}.tgz::https://registry.npmjs.org/${_npmname}/-/${_npmname}-${_npmver}.tgz")
24
b2sums=('db3d1dc00842b84ad0fa69ffd37b9571c384cb0e612f7446b33b238bd06b2f076a449b1b7fef1001da7a68b6da3f08ad17953a4d0bec030f1ee7d20341653de9')
25
26
# Document: https://wiki.archlinux.org/title/Node.js_package_guidelines
27
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-27 03:16:18 | Low | 1 |