Compare commits

...

15 Commits

Author SHA1 Message Date
da06319a7a Feat: add build workflow
All checks were successful
Build package / build-package (push) Successful in 28s
2026-03-29 18:34:17 +08:00
Yakov Till
8960c5e257 Update gemini-cli-bin to version 0.16.0 2025-11-18 18:12:11 +01:00
Yakov Till
1ab18f1ab3 Update gemini-cli-bin to version 0.15.0 2025-11-14 12:55:52 +01:00
minhnbnt
7a4b5a6229 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-10-22 22:55:51 +00:00
minhnbnt
28787df39d Update PKGBUILD and .SRCINFO with GitHub Actions 2025-10-16 02:07:00 +00:00
minhnbnt
90346133d6 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-10-10 15:12:52 +00:00
minhnbnt
954e7a5390 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-10-08 04:34:26 +00:00
minhnbnt
29eee019c8 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-10-01 22:22:45 +00:00
minhnbnt
4338784b10 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-09-25 10:20:00 +00:00
minhnbnt
7ed59cf920 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-09-24 03:07:22 +00:00
minhnbnt
5d2beda283 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-09-20 04:04:47 +00:00
minhnbnt
31de896d11 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-09-19 00:21:01 +00:00
minhnbnt
b434e97d36 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-09-18 10:46:40 +00:00
minhnbnt
018c9813d2 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-09-14 03:14:11 +00:00
minhnbnt
8a4bd235e9 Update PKGBUILD and .SRCINFO with GitHub Actions 2025-09-11 23:48:23 +00:00
3 changed files with 53 additions and 20 deletions

View File

@@ -1,17 +1,18 @@
pkgbase = gemini-cli-bin pkgbase = gemini-cli-bin
pkgdesc = An open-source AI agent that brings the power of Gemini directly into your terminal. pkgdesc = Google Gemini CLI stable channel (prebuilt single-file release)
pkgver = 0.4.0 pkgver = 0.16.0
pkgrel = 1 pkgrel = 1
url = https://github.com/google-gemini/gemini-cli url = https://github.com/google-gemini/gemini-cli
arch = any arch = any
license = Apache-2.0 license = Apache-2.0
depends = nodejs makedepends = curl
makedepends = jq
depends = nodejs>=20
provides = gemini-cli provides = gemini-cli
conflicts = gemini-cli conflicts = gemini-cli
conflicts = gemini-cli-git source = gemini.js::https://github.com/google-gemini/gemini-cli/releases/download/v0.16.0/gemini.js
source = gemini-0.4.0.js::https://github.com/google-gemini/gemini-cli/releases/download/v0.4.0/gemini.js source = LICENSE::https://raw.githubusercontent.com/google-gemini/gemini-cli/v0.16.0/LICENSE
source = LICENSE-0.4.0::https://github.com/google-gemini/gemini-cli/raw/refs/tags/v0.4.0/LICENSE sha256sums = 04bfaa21082aa95b8e4330958d2f659c4c628ccd170e3e6fdfe44f91bb29c3d4
sha256sums = e6e3f3a61895b2a733a375ce56b4f473463d86415152cc9a3913d18094aaa5c9 sha256sums = 58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd
sha256sums = 09d2d564b15d1a8be7713524b27aa8b10e55ae7cd8aeaf1e04e6059adda0de10
pkgname = gemini-cli-bin pkgname = gemini-cli-bin

View File

@@ -0,0 +1,15 @@
name: Build package
on: [push]
jobs:
build-package:
runs-on: pkgbuilder
env:
steps:
- name: Build and push package
uses: https://gitea.konchin.com/action/archbuild@main
with:
minio-accesskey: ${{ secrets.MINIO_ACCESSKEY }}
minio-secretkey: ${{ secrets.MINIO_SECRETKEY }}
gpg-password: ${{ secrets.GPG_PASSWORD }}
gpg-keygrip: ${{ secrets.GPG_KEYGRIP }}

View File

@@ -1,25 +1,42 @@
# Contributor: Nguyễn Quang Minh <minhnbnt at gmail dot com> # Maintainer: Yakov Till <yakov.till@gmail.com>
pkgname=gemini-cli-bin pkgname=gemini-cli-bin
pkgver=0.4.0 # datasource=github-releases depName=google-gemini/gemini-cli pkgver=0.16.0
pkgrel=1 pkgrel=1
pkgdesc='An open-source AI agent that brings the power of Gemini directly into your terminal.' pkgdesc="Google Gemini CLI stable channel (prebuilt single-file release)"
arch=('any') arch=('any')
url='https://github.com/google-gemini/gemini-cli' url='https://github.com/google-gemini/gemini-cli'
license=('Apache-2.0') license=('Apache-2.0')
depends=('nodejs') depends=('nodejs>=20')
makedepends=('curl' 'jq')
provides=('gemini-cli') provides=('gemini-cli')
conflicts=('gemini-cli' 'gemini-cli-git') conflicts=('gemini-cli')
source=( source=(
"gemini-${pkgver}.js::${url}/releases/download/v${pkgver}/gemini.js" "gemini.js::https://github.com/google-gemini/gemini-cli/releases/download/v${pkgver}/gemini.js"
"LICENSE-${pkgver}::${url}/raw/refs/tags/v${pkgver}/LICENSE" "LICENSE::https://raw.githubusercontent.com/google-gemini/gemini-cli/v${pkgver}/LICENSE"
) )
sha256sums=('04bfaa21082aa95b8e4330958d2f659c4c628ccd170e3e6fdfe44f91bb29c3d4'
'58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd')
sha256sums=('e6e3f3a61895b2a733a375ce56b4f473463d86415152cc9a3913d18094aaa5c9' pkgver() {
'09d2d564b15d1a8be7713524b27aa8b10e55ae7cd8aeaf1e04e6059adda0de10') local tag
tag=$(curl -s 'https://api.github.com/repos/google-gemini/gemini-cli/releases?per_page=20' |
jq -r '[.[] | select((.draft|not) and (.prerelease|not) and (.tag_name | test("^v[0-9]+\\.[0-9]+\\.[0-9]+$"))) | .tag_name][0]') || return 1
if [[ -z "$tag" || "$tag" == "null" ]]; then
echo "Failed to determine stable tag" >&2
return 1
fi
printf '%s\n' "${tag#v}"
}
package() { package() {
install -Dm755 "gemini-${pkgver}.js" "${pkgdir}/usr/bin/gemini" install -Dm644 "${srcdir}/gemini.js" "${pkgdir}/usr/lib/gemini-cli/gemini.js"
install -Dm644 "LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/gemini" <<'WRAPPER'
#!/usr/bin/env bash
exec node /usr/lib/gemini-cli/gemini.js "$@"
WRAPPER
} }