initial 0.2.6

This commit is contained in:
Christopher Cooper 2025-02-24 11:35:33 -08:00
commit b8b58da525
2 changed files with 44 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = claude-code
pkgdesc = An agentic coding tool that lives in your terminal
pkgver = 0.2.6
pkgrel = 1
url = https://github.com/anthropics/claude-code
arch = any
license = custom
makedepends = npm
depends = git
depends = ripgrep
optdepends = github-cli: interact with GitHub
optdepends = glab: interact with GitLab
optdepends = ripgrep: enhanced file search
noextract = claude-code-0.2.6.tgz
source = https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-0.2.6.tgz
b2sums = 4ac91aad0a4c6c9d47aaf9a9f1887a0fbae7baf75a994feac6b6540999b12d81063c22103832d6a5b70253bce58fae1f9de30b366195bbb35077b5cd7241afdc
pkgname = claude-code

26
PKGBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: Christopher Cooper <christopher@cg505.com>
pkgname=claude-code
_full_pkgname="@anthropic-ai/${pkgname}"
pkgver=0.2.6
pkgrel=1
pkgdesc="An agentic coding tool that lives in your terminal"
arch=('any')
url="https://github.com/anthropics/claude-code"
license=('custom')
depends=('git' 'ripgrep')
makedepends=('npm')
optdepends=(
'github-cli: interact with GitHub'
'glab: interact with GitLab'
'ripgrep: enhanced file search'
)
source=("https://registry.npmjs.org/$_full_pkgname/-/$pkgname-$pkgver.tgz")
b2sums=('4ac91aad0a4c6c9d47aaf9a9f1887a0fbae7baf75a994feac6b6540999b12d81063c22103832d6a5b70253bce58fae1f9de30b366195bbb35077b5cd7241afdc')
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"
}