This commit is contained in:
@@ -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
24
pkg/aifont/PKGBUILD
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user