add pacman pkg
All checks were successful
release / Release (push) Successful in 24s

This commit is contained in:
2026-03-02 16:40:45 +09:00
parent 841f630249
commit adc52b1d58
6 changed files with 84 additions and 4 deletions

1
.gitignore vendored
View File

@@ -7,3 +7,4 @@ root.x86_64/
archiso/ archiso/
build.log build.log
.claude .claude
/cfg/repo.sh

View File

@@ -25,8 +25,15 @@ Server = http://mirrors.cat.net/archlinux/$repo/os/$arch' > $ROOTFS/etc/pacman.d
sed -i 's/CheckSpace/#CheckSpace/' $ROOTFS/etc/pacman.conf sed -i 's/CheckSpace/#CheckSpace/' $ROOTFS/etc/pacman.conf
sed -i '/\[options\]/a NoUpgrade = etc/os-release' $ROOTFS/etc/pacman.conf sed -i '/\[options\]/a NoUpgrade = etc/os-release' $ROOTFS/etc/pacman.conf
cat >> $ROOTFS/etc/pacman.conf <<'EOF'
[aios]
SigLevel = Optional TrustAll
Server = https://git.syui.ai/ai/repo/raw/branch/main/$arch
EOF
arch-chroot $ROOTFS /bin/sh -c 'pacman-key --init && pacman-key --populate archlinux' arch-chroot $ROOTFS /bin/sh -c 'pacman-key --init && pacman-key --populate archlinux'
arch-chroot $ROOTFS /bin/sh -c 'pacman -Syu --noconfirm base-devel vim git zsh rust openssh jq nodejs npm zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search' arch-chroot $ROOTFS /bin/sh -c 'pacman -Syu --noconfirm base-devel vim git zsh rust clang openssh jq nodejs npm zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search'
if [[ "$BUILD_MODE" == "image" ]]; then if [[ "$BUILD_MODE" == "image" ]]; then
arch-chroot $ROOTFS /bin/sh -c 'pacman -S --noconfirm linux linux-firmware mkinitcpio' arch-chroot $ROOTFS /bin/sh -c 'pacman -S --noconfirm linux linux-firmware mkinitcpio'
@@ -34,7 +41,7 @@ fi
arch-chroot $ROOTFS /bin/sh -c 'npm i -g @anthropic-ai/claude-code' arch-chroot $ROOTFS /bin/sh -c 'npm i -g @anthropic-ai/claude-code'
bash cfg/pkg.sh $ROOTFS arch-chroot $ROOTFS /bin/sh -c 'pacman -Sy --noconfirm ailog aigpt aishell'
arch-chroot $ROOTFS /bin/sh -c 'chsh -s /bin/zsh' arch-chroot $ROOTFS /bin/sh -c 'chsh -s /bin/zsh'
arch-chroot $ROOTFS /bin/sh -c 'useradd -m -G wheel -s /bin/zsh ai' arch-chroot $ROOTFS /bin/sh -c 'useradd -m -G wheel -s /bin/zsh ai'

View File

@@ -9,8 +9,8 @@
"command": "ailog", "command": "ailog",
"args": ["mcp-serve"], "args": ["mcp-serve"],
"env": { "env": {
"CHAT_SYSTEM_FILE": "/home/ai/ai/log/public/content/did:plc:6qyecktefllvenje24fcxnie/ai.syui.gpt.core/self.json", "CHAT_SYSTEM_FILE": "~/.config/ai.syui.log/at/did:plc:6qyecktefllvenje24fcxnie/ai.syui.gpt.core/self.json",
"CHAT_OUTPUT": "/home/ai/ai/log/public/content" "CHAT_OUTPUT": "~/.config/ai.syui.log/at"
} }
} }
} }

24
pkg/aigpt/PKGBUILD Normal file
View File

@@ -0,0 +1,24 @@
pkgname=aigpt
pkgver=0.0.1
pkgrel=1
pkgdesc='ai memory and personality system for aios'
arch=('x86_64')
url='https://git.syui.ai/ai/gpt'
license=('MIT')
depends=('gcc-libs')
makedepends=('rust' 'cargo' 'git')
options=('!lto')
source=("git+https://git.syui.ai/ai/gpt.git#branch=main")
sha256sums=('SKIP')
build() {
cd gpt
export CC=gcc
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=gcc
cargo build --release
}
package() {
cd gpt
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}

24
pkg/ailog/PKGBUILD Normal file
View File

@@ -0,0 +1,24 @@
pkgname=ailog
pkgver=0.0.1
pkgrel=1
pkgdesc='atproto blog cli for aios'
arch=('x86_64')
url='https://git.syui.ai/ai/log'
license=('MIT')
depends=('gcc-libs')
makedepends=('rust' 'cargo' 'git')
options=('!lto')
source=("git+https://git.syui.ai/ai/log.git#branch=main")
sha256sums=('SKIP')
build() {
cd log
export CC=gcc
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=gcc
cargo build --release
}
package() {
cd log
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}

24
pkg/aishell/PKGBUILD Normal file
View File

@@ -0,0 +1,24 @@
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')
makedepends=('rust' 'cargo' 'git')
options=('!lto')
source=("git+https://git.syui.ai/ai/shell.git#branch=main")
sha256sums=('SKIP')
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}"
}