diff --git a/cfg/repo.sh b/cfg/repo.sh index 61ed720..8f28ea6 100755 --- a/cfg/repo.sh +++ b/cfg/repo.sh @@ -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) diff --git a/pkg/aifont/PKGBUILD b/pkg/aifont/PKGBUILD new file mode 100644 index 0000000..6b38434 --- /dev/null +++ b/pkg/aifont/PKGBUILD @@ -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" +}