# Maintainer: Christopher Cooper # Maintainer: Jérôme Poulin pkgname=claude-code _full_pkgname="@anthropic-ai/${pkgname}" pkgver=2.0.32 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=('54f1874bf2192cb797656cf85dd80dccc71af5e540ae9c383ec46453ff04f74387d27f129c2c284ec0c9b90f83e8b38d9ff53dd61a489662a62af4abd82bfe3b') 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" }