28 lines
1.0 KiB
Bash
28 lines
1.0 KiB
Bash
# Maintainer: Christopher Cooper <christopher@cg505.com>
|
|
pkgname=claude-code
|
|
_full_pkgname="@anthropic-ai/${pkgname}"
|
|
pkgver=0.2.124
|
|
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=('40fd722c16edbbb5380c5dc4c0d91b2edf5906da856c8555eb5af556c6466f8f11dcfa327b819baa9e5e99a1480e090cf7664c6a2b25d8de70f5aa994047da35')
|
|
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"
|
|
}
|