Files
openai-codex-bin/PKGBUILD
github-actions[bot] 5e8d1e14a5 Update to 0.93.0
2026-01-31 09:24:11 +00:00

41 lines
1.3 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# shellcheck disable=SC2034
# Maintainer: Chmouel Boudjnah <chmouel@chmouel.com>
pkgname=openai-codex-bin
pkgver=0.93.0
pkgrel=2
pkgdesc="Arch Linux package for OpenAIs Codex CLI - Auto Updated"
arch=('x86_64' 'aarch64')
url="https://github.com/openai/codex"
license=('Apache')
provides=('openai-codex')
conflicts=('openai-codex' 'openai-codex-autoup-bin')
replaces=('openai-codex-autoup-bin')
optdepends=(
'git: for working with git repositories'
'ripgrep: accelerated large-repo search'
)
keywords=('codex' 'openai' 'cli' 'ai' 'machine-learning' 'chatgpt')
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=('c0343fc310c4427c638c202fb4f28ec94e624d212a3eced20035ed1ca5875621')
sha256sums_aarch64=('66726828e9e15fc2738a39b3782b8a8cce716e33d35c4b2119c5f7fc108ecbd4')
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" || exit
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
}