todoist-cli

LOW
maintainer igorvisi 0 votes scanned 2026-08-23 15:20:41.721113
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: igorvisi <igorvisi@icloud.com>
2
3pkgname=todoist-cli
4pkgver=3.3.0
5pkgrel=1
6pkgdesc="Command-line interface for Todoist"
7arch=('any')
8url="https://github.com/Doist/todoist-cli"
9license=('MIT')
10depends=('nodejs')
11makedepends=('npm' 'jq')
12optdepends=(
13 'libsecret: OS credential storage via Secret Service (Linux)'
14)
15provides=('todoist-cli')
16conflicts=('todoist-cli-git')
17source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/@doist/todoist-cli/-/todoist-cli-$pkgver.tgz")
18sha256sums=('560c234ac157d053b6e06e23e1186a32b4e5e0cfd1afdc1ea477a60a21b61051')
19noextract=("$pkgname-$pkgver.tgz")
20options=('!strip')
21
22package() {
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)SeverityRules
2026-08-23 15:20:41 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