add aifont package
All checks were successful
release / Release (push) Successful in 4m21s

This commit is contained in:
2026-04-03 14:51:39 +09:00
parent a519d164d7
commit 1a2c0523da
2 changed files with 26 additions and 2 deletions

View File

@@ -35,11 +35,11 @@ cd "$WORK"
git clone --depth 1 https://git.syui.ai/ai/os.git
typeset -A PKG_REPOS
PKG_REPOS=(ailog log aigpt gpt aishell shell)
PKG_REPOS=(ailog log aigpt gpt aishell shell aifont font)
mkdir -p "$REPO_DIR/x86_64"
for pkg in ailog aigpt aishell; do
for pkg in ailog aigpt aishell aifont; do
repo_name="${PKG_REPOS[$pkg]}"
remote_hash=$(git ls-remote --heads "https://git.syui.ai/ai/${repo_name}.git" main | cut -c1-7)
existing=$(ls "$REPO_DIR/x86_64/${pkg}"-*.pkg.tar.zst 2>/dev/null | head -1)

24
pkg/aifont/PKGBUILD Normal file
View File

@@ -0,0 +1,24 @@
pkgname=aifont
pkgver=0.0.1
pkgrel=1
pkgdesc='Custom font for aios'
arch=('any')
url='https://git.syui.ai/ai/font'
license=('MIT')
source=("git+https://git.syui.ai/ai/font.git#branch=main")
sha256sums=('SKIP')
pkgver() {
cd font
printf "%s.r%s.g%s" \
"0.0.1" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
package() {
cd font
install -Dm644 aifont.ttf "$pkgdir/usr/share/fonts/TTF/aifont.ttf"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}