Package Details: claw-code-git 000aed4-1

Git Clone URL: https://aur.archlinux.org/claw-code-git.git (read-only, click to copy)
Package Base: claw-code-git
Description: Rust-based AI coding harness runtime
Upstream URL: https://github.com/ultraworkers/claw-code
Licenses: MIT, Apache
Conflicts: claw-code
Provides: claw-code
Submitter: bitbytheduck
Maintainer: bitbytheduck
Last Packager: bitbytheduck
Votes: 1
Popularity: 0.189315
First Submitted: 2026-04-08 01:12 (UTC)
Last Updated: 2026-04-08 01:12 (UTC)

Latest Comments

srgdts commented on 2026-05-31 10:34 (UTC) (edited on 2026-05-31 10:35 (UTC) by srgdts)

pkgname=claw-code-git
pkgver=r1512.4d3dc5b
pkgrel=1
epoch=1
pkgdesc="Rust-based AI coding harness runtime"
arch=('x86_64')
url="https://github.com/ultraworkers/claw-code"
license=('MIT')
depends=('gcc-libs' 'oniguruma')
makedepends=('git' 'cargo' 'pkgconf')
provides=('claw-code')
conflicts=('claw-code')
options=('!lto')
source=("git+https://github.com/ultraworkers/claw-code.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/claw-code"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

prepare() {
  cd "$srcdir/claw-code/rust"
  export RUSTUP_TOOLCHAIN=stable
  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
  cd "$srcdir/claw-code/rust"
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  export RUSTONIG_SYSTEM_LIBONIG=1
  cargo build --frozen --release -p rusty-claude-cli
}

package() {
  cd "$srcdir/claw-code"
  install -Dm0755 -t "$pkgdir/usr/bin/" "rust/target/release/claw"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

klrmngr commented on 2026-04-18 06:01 (UTC) (edited on 2026-04-18 06:02 (UTC) by klrmngr)

build fails with --locked since Cargo.lock is out of date; removing the flag from the PKGBUILD fixes this