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