commit dc4a661e839e8eaab472e6c7e5f8b69414dee98d Author: Will Handley Date: Tue Jul 8 18:23:33 2025 +0100 Initial commit: Add ampcode package 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..f19bb9d39952b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ampcode + pkgdesc = CLI for Amp, an agentic coding tool in research preview from Sourcegraph + pkgver = 0.0.1751990659 + pkgrel = 1 + url = https://github.com/sourcegraph/amp + arch = any + license = Apache-2.0 + makedepends = npm + depends = nodejs + optdepends = git: allow Amp to use git + optdepends = github-cli: interact with GitHub + optdepends = glab: interact with GitLab + optdepends = ripgrep: enhanced file search + noextract = amp-0.0.1751990659-g94e814.tgz + source = https://registry.npmjs.org/@sourcegraph/amp/-/amp-0.0.1751990659-g94e814.tgz + b2sums = ecfc63b2e30250b9268551c4cee42ec452a88bdb11b6b696ef16bc40ca5c8fb7f6988589063eafb9fcee720fb0fce823883db19be907152874ee060180e77570 + +pkgname = ampcode diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..afcaa1b257cfd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Will Handley +pkgname=ampcode +_full_pkgname="@sourcegraph/amp" +pkgver=0.0.1751990659 +pkgrel=1 +pkgdesc="CLI for Amp, an agentic coding tool in research preview from Sourcegraph" +arch=('any') +url="https://github.com/sourcegraph/amp" +license=('Apache-2.0') +depends=('nodejs') +makedepends=('npm') +optdepends=( + 'git: allow Amp to use git' + 'github-cli: interact with GitHub' + 'glab: interact with GitLab' + 'ripgrep: enhanced file search' +) +source=("https://registry.npmjs.org/$_full_pkgname/-/amp-$pkgver-g94e814.tgz") +b2sums=('ecfc63b2e30250b9268551c4cee42ec452a88bdb11b6b696ef16bc40ca5c8fb7f6988589063eafb9fcee720fb0fce823883db19be907152874ee060180e77570') +noextract=("amp-${pkgver}-g94e814.tgz") + +package() { + npm install -g --prefix "${pkgdir}/usr" "${srcdir}/amp-${pkgver}-g94e814.tgz" + + # Install README as license documentation since no LICENSE file exists + install -Dm644 "${pkgdir}/usr/lib/node_modules/@sourcegraph/amp/README.md" "${pkgdir}/usr/share/licenses/${pkgname}/README.md" +}