mthds
LOW
maintainer Dominiquini
1 votes
scanned 2026-08-25 03:25:42.010142
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="mthds-ai"
4
pkgname="mthds"
5
pkgdesc="CLI and SDK for methods — reusable workflows for AI coding agents"
6
pkgver=0.22.1
7
pkgrel=1
8
arch=("x86_64")
9
url="https://mthds.ai/"
10
license=("MIT")
11
12
_npmname=${pkgname}
13
_npmver=${pkgver}
14
15
replaces=("nodejs-${_npmname}")
16
depends=("nodejs" "python")
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=('d4ffa59d8dd7c4f2235b7ba07e850da0e2851fdc720919822e9cc7936615018f49f4304148d61b14be07b10f92695429fe86327f65c090f6811ab612607a5259')
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-08-25 03:25:42 | Low | 1 |