Package Details: todoist 0.19.0-1

Git Clone URL: https://aur.archlinux.org/todoist.git (read-only, click to copy)
Package Base: todoist
Description: Todoist CLI Client, written in Golang.
Upstream URL: https://github.com/sachaos/todoist
Licenses: MIT
Conflicts: todoist, todoist-cli
Provides: todoist, todoist-cli
Submitter: None
Maintainer: m-novikov (hmnd)
Last Packager: hmnd
Votes: 19
Popularity: 0.000000
First Submitted: 2017-05-11 02:26 (UTC)
Last Updated: 2023-04-12 20:41 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

1 2 3 4 Next › Last »

muflone commented on 2024-04-14 15:25 (UTC)

@hmnd @m-novikov please submit a todoist-cli package and later request a merge

tronicdude commented on 2023-11-28 21:26 (UTC) (edited on 2023-11-28 21:33 (UTC) by tronicdude)

This should absolutely be renamed todoist-cli, this is silly

Sacro commented on 2023-11-06 21:40 (UTC)

In which case there's also an issue with the todoist-appimage package, it shouldn't be doing that.

Yes, and the 1password-cli app looks for the todoist cli at todoist, that not working brought me here.

There's a convention not to change package names just because another package conflicts, especially if that other package is doing something wrong.

Sure, rename it, then I can just add it back as todoist, with the original binary name.

PC2022 commented on 2023-11-05 23:13 (UTC)

I'd also go further, and suggest this package be renamed to todoist-cli, since thats exactly what it provides

But ultimately, it's not my decision to make

PC2022 commented on 2023-11-05 23:10 (UTC) (edited on 2023-11-05 23:14 (UTC) by PC2022)

Please don't rename binaries at your own request.

I'm not the package maintainer, so I'm not sure what you mean by this.

I made a suggestion that the binaries be renamed, and it was accepted by @m-novikov

To me, it makes no sense that a set of supplmentary cli tools are masquerading as todoist

I don't see a native app, fairly sure their app is electron based and is called "Todoist-linux-x86_64-8.9.4.AppImage", I don't see how they conflict.

If you install the AppImage from the todoist website, then sure. But I think the first port of call for most Arch users, would be to look in AUR first.

In which case, there is a todoist-appimage package, which installs the gui app to /usr/bin/todoist

There is a convention here, in much the same way the 1password package will install the gui app, but 1password-cli will install supplementary cli tools.

Sacro commented on 2023-11-05 22:50 (UTC)

Please don't rename binaries at your own request.

I don't see a native app, fairly sure their app is electron based and is called "Todoist-linux-x86_64-8.9.4.AppImage", I don't see how they conflict.

1password refers to it using the name the developer gave it.

I've no idea why you think the official todoist app conflicts.

PC2022 commented on 2023-11-05 00:12 (UTC)

@sacro - The binaries in this package were renamed at my request

Maybe I've misunderstood, but I feel like the real issue is your github and CLI tools are named building as 'todoist', which conflicts with the native todoist app.

How do you envision your CLI tools should sit alongside the official todoist app, if they are not renamed to todoist-cli?

Sacro commented on 2023-11-04 18:40 (UTC) (edited on 2023-11-04 18:42 (UTC) by Sacro)

Here's a much neater PKGBUILD,

  • Doesn't rename
  • Suggests fzf
  • Builds using correct arguments
  • Doesn't create random "go" directory
  • Uses 755 for scripts, not 644
  • Doesn't create another licence file, MIT is standard
# Maintainer: Maksim Novikov <mnovikow.work@gmail.com>
# Contributor: David Roizenman <david@hmnd.io>
# Contributor: Austin Keller

pkgname=todoist
pkgver=0.19.0
pkgrel=1
pkgdesc="Todoist CLI Client, written in Golang."
arch=('x86_64' 'i686')
url="https://github.com/sachaos/todoist"
license=('MIT')
makedepends=('go' 'git')
optdepends=(
  'peco: for zsh functions script'
  'fzf: for zsh functions script'
)
options=('!strip' '!emptydirs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sachaos/todoist/archive/v$pkgver.tar.gz")
sha256sums=('acf91e168abe7d251a68ae87b1943a1f83ef3b7fd89e4f56bd82cb3db51b6ade')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  go build \
    -trimpath \
    -buildmode=pie \
    -mod=readonly \
    -modcacherw \
    -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
    .
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -Dm755 todoist "${pkgdir}/usr/bin/todoist"
  install -Dm755 todoist_functions.sh "${pkgdir}/usr/share/$pkgname/todoist_functions.sh"
  install -Dm755 todoist_functions_fzf.sh "${pkgdir}/usr/share/$pkgname/todoist_functions_fzf.sh"
  install -Dm755 todoist_functions_fzf_bash.sh "${pkgdir}/usr/share/$pkgname/todoist_functions_fzf_bash.sh"
}

Sacro commented on 2023-11-04 17:56 (UTC)

Please can you not rename binaries, other tools such as 1password can't find it if it has a different name.

hmnd commented on 2023-04-12 20:48 (UTC)

@terjestrand could you try now? If you still get a conflict try pacaur -Sy todoist-cli