Skip to content

📦 Add AUR packaging for Arch Linux#74

Open
davidgasquez wants to merge 1 commit intoDoist:mainfrom
davidgasquez:add-aur-package
Open

📦 Add AUR packaging for Arch Linux#74
davidgasquez wants to merge 1 commit intoDoist:mainfrom
davidgasquez:add-aur-package

Conversation

@davidgasquez
Copy link

Hey there! Not sure if this is the right place to ask, so feel free to close but would be awesome if you could publish the package to AUR.

This PR should add a PKGBUILD (aur/PKGBUILD) that installs td directly from the npm registry tarball.

This PR only adds the PKGBUILD to the repo (doesn't publish the package). You'd need to create an account on the AUR and submit the package there.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65d7777ff7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

arch=('any')
url='https://github.com/Doist/todoist-cli'
license=('MIT')
depends=('nodejs>=20')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Declare npm as a build dependency

This PKGBUILD runs npm in package(), but it only declares nodejs in depends and no makedepends. In Arch clean-chroot builds, only declared deps are installed for the build; because npm is packaged separately, this can fail immediately with npm: command not found. Add npm to makedepends so the packaging step has the required tool.

Useful? React with 👍 / 👎.

Comment on lines +17 to +20
npm install -g \
--prefix "${pkgdir}/usr" \
--cache "${srcdir}/npm-cache" \
"${srcdir}/todoist-cli-${pkgver}.tgz"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid network dependency resolution in package()

Running npm install -g on the tarball here causes npm to fetch transitive dependencies during package(), which are not declared in source/checksums and will fail in offline or egress-restricted builders. Since this package has runtime dependencies and no bundled modules, builds become non-reproducible and can break depending on registry access. Package from pre-vendored sources (or otherwise avoid dependency downloads during package()).

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant