From b8b58da525cb7c8185cb2ce635d374531509b9be Mon Sep 17 00:00:00 2001 From: Christopher Cooper Date: Mon, 24 Feb 2025 11:35:33 -0800 Subject: [PATCH] initial 0.2.6 --- .SRCINFO | 18 ++++++++++++++++++ PKGBUILD | 26 ++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..77d42da9714c --- /dev/null +++ b/.SRCINFO @@ -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 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..026243d7a551 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Christopher Cooper +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" +}