Files
claude-code/PKGBUILD
Jérôme Poulin bf3a220d74 update to 2.0.28
2025-10-27 17:31:59 -04:00

29 lines
1.1 KiB
Bash

# Maintainer: Christopher Cooper <christopher@cg505.com>
# Maintainer: Jérôme Poulin <jeromepoulin@gmail.com>
pkgname=claude-code
_full_pkgname="@anthropic-ai/${pkgname}"
pkgver=2.0.28
pkgrel=1
pkgdesc="An agentic coding tool that lives in your terminal"
arch=('any')
url="https://github.com/anthropics/claude-code"
license=('LicenseRef-claude-code')
depends=('nodejs')
makedepends=('npm')
optdepends=(
'git: allow Claude to use git'
'github-cli: interact with GitHub'
'glab: interact with GitLab'
'ripgrep: enhanced file search'
)
source=("https://registry.npmjs.org/$_full_pkgname/-/$pkgname-$pkgver.tgz")
b2sums=('a4d50f6a33ea0707ea8e0b51f9e4ea8b91fda9d20df3921fde36d76d366a413b0febdeeb4aa663ba9c56e9a58225cbd8e25689acfdbb8414a90bfdb81da3ffe7')
noextract=("${pkgname}-${pkgver}.tgz")
package() {
npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
# Install from location in pkgdir since we have noextract.
install -Dm644 "${pkgdir}/usr/lib/node_modules/@anthropic-ai/claude-code/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}