Files
claude-code/PKGBUILD
Christopher Cooper 99d01e8856 update to 2.0.14
2025-10-10 14:59:18 -07: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.14
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=('f584a08b39067b2763a92e608a203535eb21998cb4d04f85d06e6ea64395aff60f4d409193126a065113c667a56d0e98e13fc9b893b76de58dac7d7574c25f20')
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"
}