29 lines
1.1 KiB
Bash
29 lines
1.1 KiB
Bash
# Maintainer: Christopher Cooper <christopher@cg505.com>
|
|
# Maintainer: Jérôme Poulin <jeromepoulin@gmail.com>
|
|
pkgname=claude-code
|
|
_full_pkgname="@anthropic-ai/${pkgname}"
|
|
pkgver=1.0.117
|
|
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=('025eabfdf9e93196adec294f3f0277aa1a3ebec1cd4b4f7d214dacec7294483c26727e99184fc5052d145b1fa297cb363e19301ef73ea376cb4e7834dc143c4d')
|
|
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"
|
|
}
|