doubleo7/packaging/PKGBUILD
Austin Schaefer b0ebe933d3
All checks were successful
CI / test (pull_request) Successful in 2m42s
Add PKGBUILD for local Arch/Manjaro install
Packages doubleo7 as doubleo7-git, sourcing from this repo's own git
history so a later `makepkg -si` picks up new commits and reinstalls
in place. Works around a Manjaro CFLAGS/LDFLAGS hardening flag that
corrupts aws-lc-sys's vendored C build at link time.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013XCcBkpdbUxSEeofhgAueS
2026-08-24 12:18:31 +02:00

47 lines
1.2 KiB
Bash

# Maintainer: Austin Schaefer <schaefer.austin.p@inbox.eu>
pkgname=doubleo7-git
pkgver=0.2.0.r59.g8d7f8b6
pkgrel=1
pkgdesc="Local-first, multi-agent deep-research CLI"
arch=('x86_64')
url="https://code.austinschaefer.com/schaefera/doubleo7"
license=('custom')
depends=('gcc-libs')
makedepends=('cargo' 'git')
provides=('doubleo7')
conflicts=('doubleo7')
source=("$pkgname::git+ssh://git@51.15.208.55:22222/schaefera/doubleo7.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
local base
base=$(grep -m1 '^version' Cargo.toml | cut -d '"' -f2)
printf "%s.r%s.g%s" "$base" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
cargo fetch --locked
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
# Distro CFLAGS/LDFLAGS hardening flags corrupt aws-lc-sys's vendored C
# build (symbol-prefix mismatch at link time); build it with cc-rs's own
# defaults instead.
unset CFLAGS CXXFLAGS LDFLAGS CPPFLAGS
cargo build --frozen --release
}
check() {
cd "$pkgname"
cargo test --frozen --release
}
package() {
cd "$pkgname"
install -Dm755 "target/release/doubleo7" "$pkgdir/usr/bin/doubleo7"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}