mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
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:
commit
dc4a661e83
2 changed files with 45 additions and 0 deletions
18
.SRCINFO
Normal file
18
.SRCINFO
Normal 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
27
PKGBUILD
Normal 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"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue