Files
claude-code/PKGBUILD
Christopher Cooper 5ee15cd3e7 update to 0.2.9
2025-02-24 17:34:49 -08:00

27 lines
989 B
Bash

# Maintainer: Christopher Cooper <christopher@cg505.com>
pkgname=claude-code
_full_pkgname="@anthropic-ai/${pkgname}"
pkgver=0.2.9
pkgrel=1
pkgdesc="An agentic coding tool that lives in your terminal"
arch=('any')
url="https://github.com/anthropics/claude-code"
license=('custom')
depends=('git' 'ripgrep')
makedepends=('npm')
optdepends=(
'github-cli: interact with GitHub'
'glab: interact with GitLab'
'ripgrep: enhanced file search'
)
source=("https://registry.npmjs.org/$_full_pkgname/-/$pkgname-$pkgver.tgz")
b2sums=('9738d2d9982b4b191fc373c79cada3123a161cfaf56c1d77afb29ea334507913293abf2a339a38f9bd9c463e513447f90f30b94faf5b3222c357167abf58620a')
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"
}