Files
os/pkg/aishell/PKGBUILD
syui 6a24741ba8
All checks were successful
release / Release (push) Successful in 7m20s
fix: add alsa-lib dependency for aishell
2026-03-28 14:00:12 +09:00

34 lines
741 B
Bash

pkgname=aishell
pkgver=0.0.1
pkgrel=1
pkgdesc='custom shell for aios'
arch=('x86_64')
url='https://git.syui.ai/ai/shell'
license=('MIT')
depends=('gcc-libs' 'alsa-lib')
makedepends=('rust' 'cargo' 'git' 'alsa-lib')
options=('!lto' '!debug')
source=("git+https://git.syui.ai/ai/shell.git#branch=main")
sha256sums=('SKIP')
pkgver() {
cd shell
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 shell
export CC=gcc
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=gcc
cargo build --release
}
package() {
cd shell
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}