Files
os/pkg/ailog/PKGBUILD
syui 3a58b8243d
All checks were successful
release / Release (push) Successful in 6m33s
fix pkg ver
2026-03-03 17:08:51 +09:00

34 lines
711 B
Bash

pkgname=ailog
pkgver=0.0.1
pkgrel=1
pkgdesc='atproto blog cli for aios'
arch=('x86_64')
url='https://git.syui.ai/ai/log'
license=('MIT')
depends=('gcc-libs')
makedepends=('rust' 'cargo' 'git')
options=('!lto' '!debug')
source=("git+https://git.syui.ai/ai/log.git#branch=main")
sha256sums=('SKIP')
pkgver() {
cd log
printf "%s.r%s.g%s" \
"$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)"/\1/')" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
cd log
export CC=gcc
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=gcc
cargo build --release
}
package() {
cd log
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}