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