37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Maintainer: Jack Mahoney <jacksmahoney@gmail.com>
|
|
pkgname=openai-codex-bin
|
|
pkgver=0.25.0
|
|
pkgrel=1
|
|
pkgdesc="Lightweight coding agent that runs in your terminal (binary release)"
|
|
arch=('x86_64' 'aarch64')
|
|
url="https://github.com/openai/codex"
|
|
license=('Apache')
|
|
provides=('openai-codex')
|
|
conflicts=('openai-codex')
|
|
optdepends=(
|
|
'git: for working with git repositories'
|
|
'ripgrep: accelerated large-repo search'
|
|
)
|
|
|
|
source_x86_64=(
|
|
"codex-${pkgver}-x86_64.tar.gz::https://github.com/openai/codex/releases/download/rust-v${pkgver}/codex-x86_64-unknown-linux-gnu.tar.gz"
|
|
)
|
|
sha256sums_x86_64=('779adfc842b4b8a7911e67ebd1eee6ac3398af155aea2dc7a0d55a52c0722db7')
|
|
sha256sums_aarch64=('e43486c69204439ae9116c8c00f0ce4951cf8c7fe50854c3e31840087f7ec326')
|
|
|
|
source_aarch64=(
|
|
"codex-${pkgver}-aarch64.tar.gz::https://github.com/openai/codex/releases/download/rust-v${pkgver}/codex-aarch64-unknown-linux-gnu.tar.gz"
|
|
)
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
|
|
if [[ "$CARCH" == "x86_64" ]]; then
|
|
install -Dm755 "codex-x86_64-unknown-linux-gnu" "$pkgdir/usr/bin/codex"
|
|
fi
|
|
|
|
if [[ "$CARCH" == "aarch64" ]]; then
|
|
install -Dm755 "codex-aarch64-unknown-linux-gnu" "$pkgdir/usr/bin/codex"
|
|
fi
|
|
}
|