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