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