diff --git a/pkg/aigpt/PKGBUILD b/pkg/aigpt/PKGBUILD index 51d5cb0..ae5b9d1 100644 --- a/pkg/aigpt/PKGBUILD +++ b/pkg/aigpt/PKGBUILD @@ -1,6 +1,7 @@ pkgname=aigpt -pkgver=0.0.1 +#pkgver=0.0.1 pkgrel=1 + pkgdesc='ai memory and personality system for aios' arch=('x86_64') url='https://git.syui.ai/ai/gpt' @@ -11,6 +12,14 @@ options=('!lto') source=("git+https://git.syui.ai/ai/gpt.git#branch=main") sha256sums=('SKIP') +pkgver() { + cd gpt + printf "%s.r%s.g%s" \ + "$(cargo pkgid | sed 's/.*@//')" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + build() { cd gpt export CC=gcc diff --git a/pkg/ailog/PKGBUILD b/pkg/ailog/PKGBUILD index c2f0fb3..8033ce7 100644 --- a/pkg/ailog/PKGBUILD +++ b/pkg/ailog/PKGBUILD @@ -1,6 +1,7 @@ pkgname=ailog -pkgver=0.0.1 +#pkgver=0.0.1 pkgrel=1 + pkgdesc='atproto blog cli for aios' arch=('x86_64') url='https://git.syui.ai/ai/log' @@ -11,6 +12,14 @@ options=('!lto') source=("git+https://git.syui.ai/ai/log.git#branch=main") sha256sums=('SKIP') +pkgver() { + cd log + printf "%s.r%s.g%s" \ + "$(cargo pkgid | sed 's/.*@//')" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + build() { cd log export CC=gcc diff --git a/pkg/aishell/PKGBUILD b/pkg/aishell/PKGBUILD index 235b031..7ea93ea 100644 --- a/pkg/aishell/PKGBUILD +++ b/pkg/aishell/PKGBUILD @@ -1,6 +1,7 @@ pkgname=aishell -pkgver=0.0.1 +#pkgver=0.0.1 pkgrel=1 + pkgdesc='custom shell for aios' arch=('x86_64') url='https://git.syui.ai/ai/shell' @@ -11,6 +12,14 @@ options=('!lto') source=("git+https://git.syui.ai/ai/shell.git#branch=main") sha256sums=('SKIP') +pkgver() { + cd shell + printf "%s.r%s.g%s" \ + "$(cargo pkgid | sed 's/.*@//')" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + build() { cd shell export CC=gcc