Initial commit: Add ampcode package

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Will Handley 2025-07-08 18:23:33 +01:00
commit dc4a661e83
No known key found for this signature in database
GPG key ID: 14B25F0A12CCB2FB
2 changed files with 45 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -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

27
PKGBUILD Normal file
View file

@ -0,0 +1,27 @@
# Maintainer: Will Handley <wh260@cam.ac.uk>
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"
}