# Maintainer: Christopher Cooper pkgname=claude-code _full_pkgname="@anthropic-ai/${pkgname}" pkgver=0.2.41 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=('281954167c5089c76f74dd8b096ecfda164de539aa7d991b43ee386d5c2cd465347a8cda4206dac266a6a66ed538a3845efa670b0379b470eee61a6b5f8d7bc1') 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" }