todoist-cli
LOW
maintainer igorvisi
0 votes
scanned 2026-08-23 15:20:41.721113
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: igorvisi <igorvisi@icloud.com>
2
3
pkgname=todoist-cli
4
pkgver=3.3.0
5
pkgrel=1
6
pkgdesc="Command-line interface for Todoist"
7
arch=('any')
8
url="https://github.com/Doist/todoist-cli"
9
license=('MIT')
10
depends=('nodejs')
11
makedepends=('npm' 'jq')
12
optdepends=(
13
'libsecret: OS credential storage via Secret Service (Linux)'
14
)
15
provides=('todoist-cli')
16
conflicts=('todoist-cli-git')
17
source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/@doist/todoist-cli/-/todoist-cli-$pkgver.tgz")
18
sha256sums=('560c234ac157d053b6e06e23e1186a32b4e5e0cfd1afdc1ea477a60a21b61051')
19
noextract=("$pkgname-$pkgver.tgz")
20
options=('!strip')
21
22
package() {
23
npm install -g --cache "${srcdir}/npm-cache" --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
24
25
# Remove references to $pkgdir and $srcdir
26
find "${pkgdir}" -type f -name package.json -print0 | xargs -0 sed -i "/_where/d" || true
27
28
local _pkgjson="${pkgdir}/usr/lib/node_modules/@doist/todoist-cli/package.json"
29
if [[ -f "${_pkgjson}" ]]; then
30
local _tmp
31
_tmp="$(mktemp)"
32
jq 'with_entries(select(.key | test("^_") | not))' "${_pkgjson}" > "${_tmp}"
33
mv "${_tmp}" "${_pkgjson}"
34
chmod 644 "${_pkgjson}"
35
fi
36
37
# Fix permissions
38
find "${pkgdir}/usr" -type d -exec chmod 755 {} +
39
40
# npm gives ownership of all files to build user
41
# https://bugs.archlinux.org/task/63396
42
chown -R root:root "${pkgdir}"
43
44
# Remove empty etc directory if npm created it
45
[[ -d "${pkgdir}/usr/etc" ]] && rm -rf "${pkgdir}/usr/etc"
46
47
# License
48
install -Dm644 "${pkgdir}/usr/lib/node_modules/@doist/todoist-cli/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
49
}
50
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-23 15:20:41 | Low | 1 |