commit 5160e2c0659bf956d45cd2757f48aec37aa25b05 Author: Jack Mahoney Date: Mon Jul 21 13:18:47 2025 -0700 init rust based bin pkg version 0.8.0 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..967db32 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = openai-codex-bin + pkgdesc = Lightweight coding agent that runs in your terminal + pkgver = 0.8.0 + pkgrel = 1 + url = https://github.com/openai/codex + arch = x86_64 + arch = aarch64 + license = Apache-2.0 + optdepends = git + optdepends = ripgrep: accelerated large-repo search + source_x86_64 = https://github.com/openai/codex/releases/download/rust-v0.8.0/codex-x86_64-unknown-linux-musl.tar.gz + source_x86_64 = https://github.com/openai/codex/releases/download/rust-v0.8.0/codex-exec-x86_64-unknown-linux-musl.tar.gz + source_x86_64 = https://github.com/openai/codex/releases/download/rust-v0.8.0/codex-linux-sandbox-x86_64-unknown-linux-musl.tar.gz + sha256sums_x86_64 = db86033cf86489bf47e6a5309ae5276497709b60ecb51596a475ac070c9c17f0 + sha256sums_x86_64 = 3e02ef37e6a352286a7ab2ed27a6f8c781f552ea9e4ca8a35238066c4d56db48 + sha256sums_x86_64 = 691095a4e1db54ef7030ef89ca787bf1d37a22d8308c51a2b4984b220c001b01 + source_aarch64 = https://github.com/openai/codex/releases/download/rust-v0.8.0/codex-aarch64-unknown-linux-musl.tar.gz + source_aarch64 = https://github.com/openai/codex/releases/download/rust-v0.8.0/codex-exec-aarch64-unknown-linux-musl.tar.gz + source_aarch64 = https://github.com/openai/codex/releases/download/rust-v0.8.0/codex-linux-sandbox-aarch64-unknown-linux-musl.tar.gz + sha256sums_aarch64 = b42788e4da013d3c94c87210c367f49241455b5638f0a28850ce050403d1e34f + sha256sums_aarch64 = d9daea8e7e660dd4ff15e5202768b0d13808c44269b8e029436fddf95a136f49 + sha256sums_aarch64 = c58ccb799b09f23481ea3df5c5bdc14db090eb32b11870432ab8388ef2baccec + +pkgname = openai-codex-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..877c1bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Jack Mahoney +pkgname=openai-codex-bin +pkgver=0.8.0 +pkgrel=1 +pkgdesc="Lightweight coding agent that runs in your terminal" +arch=('x86_64' 'aarch64') +url="https://github.com/openai/codex" +license=('Apache-2.0') +depends=() +makedepends=() +optdepends=( + 'git' + 'ripgrep: accelerated large-repo search' +) + +source_x86_64=( + "https://github.com/openai/codex/releases/download/rust-v${pkgver}/codex-x86_64-unknown-linux-musl.tar.gz" + "https://github.com/openai/codex/releases/download/rust-v${pkgver}/codex-exec-x86_64-unknown-linux-musl.tar.gz" + "https://github.com/openai/codex/releases/download/rust-v${pkgver}/codex-linux-sandbox-x86_64-unknown-linux-musl.tar.gz" +) +sha256sums_x86_64=( + 'db86033cf86489bf47e6a5309ae5276497709b60ecb51596a475ac070c9c17f0' + '3e02ef37e6a352286a7ab2ed27a6f8c781f552ea9e4ca8a35238066c4d56db48' + '691095a4e1db54ef7030ef89ca787bf1d37a22d8308c51a2b4984b220c001b01' +) + +source_aarch64=( + "https://github.com/openai/codex/releases/download/rust-v${pkgver}/codex-aarch64-unknown-linux-musl.tar.gz" + "https://github.com/openai/codex/releases/download/rust-v${pkgver}/codex-exec-aarch64-unknown-linux-musl.tar.gz" + "https://github.com/openai/codex/releases/download/rust-v${pkgver}/codex-linux-sandbox-aarch64-unknown-linux-musl.tar.gz" +) +sha256sums_aarch64=( + 'b42788e4da013d3c94c87210c367f49241455b5638f0a28850ce050403d1e34f' + 'd9daea8e7e660dd4ff15e5202768b0d13808c44269b8e029436fddf95a136f49' + 'c58ccb799b09f23481ea3df5c5bdc14db090eb32b11870432ab8388ef2baccec' +) + +package() { + install -Dm755 "${srcdir}/codex-${CARCH}-unknown-linux-musl" "${pkgdir}/usr/bin/codex" + install -Dm755 "${srcdir}/codex-exec-${CARCH}-unknown-linux-musl" "${pkgdir}/usr/bin/codex-exec" + install -Dm755 "${srcdir}/codex-linux-sandbox-${CARCH}-unknown-linux-musl" "${pkgdir}/usr/bin/codex-linux-sandbox" +}