Add opencode-antigravity-auth version 1.2.6

This commit is contained in:
Yakov Till 2025-12-29 21:30:32 +01:00
commit 7af38e50ec
4 changed files with 79 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = opencode-antigravity-auth
pkgdesc = Google Antigravity OAuth Plugin for opencode
pkgver = 1.2.6
pkgrel = 1
url = https://github.com/NoeFabris/opencode-antigravity-auth
install = opencode-antigravity-auth.install
arch = any
license = MIT
makedepends = npm
depends = opencode
conflicts = opencode-antigravity-auth-debug
options = !strip
options = !debug
source = opencode-antigravity-auth-1.2.6.tar.gz::https://github.com/NoeFabris/opencode-antigravity-auth/archive/refs/tags/v1.2.6.tar.gz
sha256sums = 3bfd0b6dea7be942fffe215ab13a3f03e6b5038e63d3e73a9e708565167aa68a
pkgname = opencode-antigravity-auth

10
.gitignore vendored Normal file
View file

@ -0,0 +1,10 @@
pkg/
src/
*.pkg.tar.*
*.tar.gz
*.tar.bz2
*.tar.xz
*.tar.zst
*.zip
*.log
*.sig

33
PKGBUILD Normal file
View file

@ -0,0 +1,33 @@
# Maintainer: Yakov Till <yakov.till@gmail.com>
pkgname=opencode-antigravity-auth
pkgver=1.2.6
pkgrel=1
pkgdesc="Google Antigravity OAuth Plugin for opencode"
arch=('any')
url="https://github.com/NoeFabris/opencode-antigravity-auth"
license=('MIT')
depends=('opencode')
makedepends=('npm')
options=('!strip' '!debug')
conflicts=("${pkgname}-debug")
install=$pkgname.install
latestver() {
local latest
latest=$(curl -fsS "https://api.github.com/repos/NoeFabris/opencode-antigravity-auth/releases/latest" \
| grep -Po '"tag_name": "v\K[^"]+' \
| head -n1 || true)
printf '%s\n' "${latest:-$pkgver}"
}
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('3bfd0b6dea7be942fffe215ab13a3f03e6b5038e63d3e73a9e708565167aa68a')
package() {
cd "$srcdir/$pkgname-$pkgver"
npm ci --omit=dev
mkdir -p "$pkgdir/usr/lib/opencode/plugins/$pkgname"
cp -r . "$pkgdir/usr/lib/opencode/plugins/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

View file

@ -0,0 +1,19 @@
post_install() {
echo "=========================================================================="
echo " Opencode Antigravity Auth Plugin Installed"
echo "=========================================================================="
echo ""
echo "To enable this plugin, add it to your opencode configuration file"
echo "(e.g., ~/.config/opencode/config.json):"
echo ""
echo " {"
echo " \"plugin\": [\"opencode-antigravity-auth\"]"
echo " }"
echo ""
echo "Then run 'opencode auth login' to authenticate."
echo "=========================================================================="
}
post_upgrade() {
post_install
}