# Maintainer: Christopher Cooper pkgname=claude-code _full_pkgname="@anthropic-ai/${pkgname}" pkgver=0.2.69 pkgrel=1 pkgdesc="An agentic coding tool that lives in your terminal" arch=('any') url="https://github.com/anthropics/claude-code" license=('custom') depends=() 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=('4e1c961bdeea0b76a0c2f612f3937898ce5904f157a4d246d83b0b11b88e16a58740fddb37a3a5e3bd5eb9e118dc2eee971e358ec1ba97b4fb312fbb39823635') 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" }