28 lines
1004 B
Bash
28 lines
1004 B
Bash
# Maintainer: Christopher Cooper <christopher@cg505.com>
|
|
pkgname=claude-code
|
|
_full_pkgname="@anthropic-ai/${pkgname}"
|
|
pkgver=0.2.72
|
|
pkgrel=1
|
|
pkgdesc="An agentic coding tool that lives in your terminal"
|
|
arch=('any')
|
|
url="https://github.com/anthropics/claude-code"
|
|
license=('custom')
|
|
depends=()
|
|
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=('b52a40f47c93e52eb88d052efdb7ee3c5f9c2a2aeadf8016471b0b6716a2534a09733a3f5b8de4ee89f1e37ae8a54f3558d3ec0ef94fa2d6a4461519c8b1d2c9')
|
|
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"
|
|
}
|