mthds

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