Files
claude-code/PKGBUILD
Christopher Cooper c3b473a29a update to 1.0.52
2025-07-15 11:07:59 -07:00

28 lines
1.0 KiB
Bash

# Maintainer: Christopher Cooper <christopher@cg505.com>
pkgname=claude-code
_full_pkgname="@anthropic-ai/${pkgname}"
pkgver=1.0.52
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=('b53f9975320cb970cb03d7ba84bce81447f7eaa8f6c6af3e85104d27cbbe3627dfeb6a1c61a939d1201849d815cb65c179cf3a46e328e3e9d72eda6df294beaa')
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"
}