T.J. Townsend pushed to branch main at Arch Linux / Packaging / Packages / 
openai-codex


Commits:
a773c556 by T.J. Townsend at 2026-09-25T10:18:00-04:00
upgpkg: 0.157.0-2

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = openai-codex
        pkgdesc = OpenAIs lightweight coding agent that runs in your terminal
        pkgver = 0.157.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/openai/codex
        arch = x86_64
        license = Apache-2.0


=====================================
PKGBUILD
=====================================
@@ -5,7 +5,7 @@
 
 pkgname=openai-codex
 pkgver=0.157.0
-pkgrel=1
+pkgrel=2
 _v8ver=150.4.0
 pkgdesc='OpenAIs lightweight coding agent that runs in your terminal'
 arch=(x86_64)
@@ -69,17 +69,36 @@ build() {
 package() {
   cd codex-rust-v$pkgver/codex-rs
 
-  install -Dm755 -t "$pkgdir"/usr/bin \
+  local root="$pkgdir/usr/lib/openai-codex"
+  install -Dm755 -t "$root/bin" \
     target/release/codex \
     target/release/codex-code-mode-host \
     target/release/codex-responses-api-proxy
 
+  install -d "$pkgdir/usr/bin" "$root/codex-resources" "$root/codex-path"
+  local binary
+  for binary in codex codex-code-mode-host codex-responses-api-proxy; do
+    ln -s "../lib/openai-codex/bin/$binary" "$pkgdir/usr/bin/$binary"
+  done
+
+  printf '%s\n' \
+    '{' \
+    '  "layoutVersion": 1,' \
+    "  \"version\": \"$pkgver+arch.$pkgrel\"," \
+    "  \"target\": \"$(rustc --print host-tuple)\"," \
+    '  "entrypoint": "bin/codex"' \
+    '}' > "$root/codex-package.json"
+  printf '%s\n' '#!/bin/sh' 'exec /usr/bin/bwrap "$@"' \
+    > "$root/codex-resources/bwrap"
+  printf '%s\n' '#!/bin/sh' 'exec /usr/bin/rg "$@"' > "$root/codex-path/rg"
+  chmod 755 "$root/codex-resources/bwrap" "$root/codex-path/rg"
+
   install -d "${pkgdir}/usr/share/bash-completion/completions" \
              "${pkgdir}/usr/share/zsh/site-functions" \
              "${pkgdir}/usr/share/fish/vendor_completions.d"
-  "${pkgdir}/usr/bin/codex" completion bash > 
"${pkgdir}/usr/share/bash-completion/completions/codex"
-  "${pkgdir}/usr/bin/codex" completion zsh > 
"${pkgdir}/usr/share/zsh/site-functions/_codex"
-  "${pkgdir}/usr/bin/codex" completion fish > 
"${pkgdir}/usr/share/fish/vendor_completions.d/codex.fish"
+  "$root/bin/codex" completion bash > 
"${pkgdir}/usr/share/bash-completion/completions/codex"
+  "$root/bin/codex" completion zsh > 
"${pkgdir}/usr/share/zsh/site-functions/_codex"
+  "$root/bin/codex" completion fish > 
"${pkgdir}/usr/share/fish/vendor_completions.d/codex.fish"
 }
 
 # vim:set ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/openai-codex/-/commit/a773c556deb3982566da6a97f4b418b60e09cbc6

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/openai-codex/-/commit/a773c556deb3982566da6a97f4b418b60e09cbc6
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to