blob: b936c8e323b55ac4d7f19c5e1281666d319e2465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Karasowl <https://github.com/Karasowl>
#
# Official steipete/CodexBar CLI binary for Linux. Provides the `codexbar`
# command used by kodexbar-suite as the per-provider quota backend for
# Codex, Grok, and Antigravity.
#
# The AUR name `codexbar` belongs to an unrelated Waybar widget
# (mryll/codexbar) that also installs /usr/bin/codexbar, so this package
# uses codexbar-cli-bin and conflicts with that foreign package.
pkgname=codexbar-cli-bin
pkgver=0.63.0
pkgrel=1
pkgdesc='CodexBar CLI (official binary): AI provider usage quotas backend used by kodexbar-suite'
arch=('x86_64' 'aarch64')
url='https://github.com/steipete/CodexBar'
license=('MIT')
depends=('curl' 'sqlite' 'gcc-libs')
provides=('codexbar-cli')
conflicts=('codexbar')
# Swift release binary: keep the upstream-built image intact.
options=(!strip)
# Flat release tarball at root: CodexBarCLI (real binary), codexbar -> CodexBarCLI
# (symlink), VERSION (read next to the realpath of the executable for --version).
# Install the binary + VERSION under /usr/lib and expose /usr/bin/codexbar.
source_x86_64=("CodexBarCLI-v${pkgver}-linux-x86_64.tar.gz::https://github.com/steipete/CodexBar/releases/download/v${pkgver}/CodexBarCLI-v${pkgver}-linux-x86_64.tar.gz")
source_aarch64=("CodexBarCLI-v${pkgver}-linux-aarch64.tar.gz::https://github.com/steipete/CodexBar/releases/download/v${pkgver}/CodexBarCLI-v${pkgver}-linux-aarch64.tar.gz")
source=("LICENSE::https://raw.githubusercontent.com/steipete/CodexBar/v${pkgver}/LICENSE")
sha256sums_x86_64=('7112a2bfa35b917bfa1092b45f323f8af8f8973df3b59ff115053295aee53759')
sha256sums_aarch64=('12ec6cda5d848a4956eb24fa5be819ac1f1e5172c38c3375b015c302daf5a618')
sha256sums=('14293556b79940745123d0160c71d27ed0e9fe9b8a848093f3ed78f4853caafe')
package() {
local libdir="${pkgdir}/usr/lib/${pkgname}"
install -Dm755 "${srcdir}/CodexBarCLI" "${libdir}/CodexBarCLI"
install -Dm644 "${srcdir}/VERSION" "${libdir}/VERSION"
install -d "${pkgdir}/usr/bin"
ln -s "../lib/${pkgname}/CodexBarCLI" "${pkgdir}/usr/bin/codexbar"
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|