2026-07-12 01:52:41 +02:00
|
|
|
# Maintainer: Kira <[@kira](https://dev.kira-linux.org/kira)>
|
|
|
|
|
|
|
|
|
|
pkgname=bzz-initrd
|
2026-08-01 23:45:14 +02:00
|
|
|
pkgver=0.2.1
|
2026-08-18 23:37:38 +02:00
|
|
|
pkgrel=3
|
2026-07-12 01:52:41 +02:00
|
|
|
pkgdesc='Initrd image for Kira Linux'
|
|
|
|
|
url='https://dev.kira-linux.org'
|
|
|
|
|
arch=(x86_64)
|
|
|
|
|
|
2026-08-18 23:37:38 +02:00
|
|
|
_nyanit_ver=0.2.1-1
|
2026-07-12 01:52:41 +02:00
|
|
|
_nyanit_src=v${_nyanit_ver}.tar.gz
|
2026-07-31 16:08:18 +02:00
|
|
|
_nyanit_src_dir=nyanit
|
2026-07-12 01:52:41 +02:00
|
|
|
|
|
|
|
|
makedepends=(
|
|
|
|
|
bcachefs-tools
|
2026-07-29 14:24:01 +02:00
|
|
|
dosfstools
|
2026-07-12 01:52:41 +02:00
|
|
|
coreutils
|
|
|
|
|
pax-utils
|
2026-07-14 00:08:34 +02:00
|
|
|
rust
|
|
|
|
|
tar
|
2026-07-12 01:52:41 +02:00
|
|
|
bc
|
|
|
|
|
cpio
|
|
|
|
|
gettext
|
|
|
|
|
pahole
|
|
|
|
|
perl
|
|
|
|
|
python
|
|
|
|
|
xz
|
|
|
|
|
gzip
|
|
|
|
|
zstd
|
|
|
|
|
)
|
|
|
|
|
options=(
|
|
|
|
|
!debug
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
source=(
|
|
|
|
|
https://dev.kira-linux.org/kira-linux/nyanit/archive/${_nyanit_src}
|
|
|
|
|
)
|
|
|
|
|
|
2026-07-21 00:26:14 +02:00
|
|
|
# source=(
|
|
|
|
|
# nyanit.zip
|
|
|
|
|
# )
|
|
|
|
|
|
|
|
|
|
|
2026-08-18 23:37:38 +02:00
|
|
|
sha256sums=('9c8e20c3d32174037b26fea4e936467ed9391284bf7ff4675ecf4a83fd820742')
|
|
|
|
|
b2sums=('05f25e60c491b7ef558d832addd44784db09170418f643ad341050dddb60a78fb9feb9fb47603cdd4a651eacf1b1cbf515bf37dadf84b8dfc2755c1eeead7c30')
|
2026-07-12 01:52:41 +02:00
|
|
|
|
|
|
|
|
_tools_list=(
|
|
|
|
|
/usr/bin/bcachefs
|
|
|
|
|
/usr/bin/fsck
|
|
|
|
|
/usr/bin/fsck.vfat
|
|
|
|
|
/usr/bin/switch_root
|
2026-07-29 14:24:01 +02:00
|
|
|
/usr/bin/blkid
|
2026-07-12 01:52:41 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
|
|
|
|
|
echo "Building NYANIT..."
|
|
|
|
|
cd $_nyanit_src_dir
|
|
|
|
|
cargo build --release
|
2026-07-14 00:08:34 +02:00
|
|
|
cp target/release/nyanit $srcdir/init
|
|
|
|
|
chmod +x $srcdir/init
|
2026-07-12 01:52:41 +02:00
|
|
|
echo "##### DONE Building NYANIT #####"
|
|
|
|
|
echo ""
|
|
|
|
|
|
2026-08-18 23:37:38 +02:00
|
|
|
echo "Build initramfs image..."
|
2026-07-14 00:08:34 +02:00
|
|
|
cd $srcdir
|
2026-08-18 23:37:38 +02:00
|
|
|
$_nyanit_src_dir/build_initcpio.sh $srcdir
|
2026-07-12 01:52:41 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
pkgdesc="The $pkgdesc kernel and modules"
|
|
|
|
|
license=(
|
|
|
|
|
GPL-3.0-or-later
|
|
|
|
|
GPL-2.0-or-later
|
|
|
|
|
GPL-2.0-only
|
|
|
|
|
Zlib
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
echo "Installing bzz-initrd"
|
|
|
|
|
install -vDm 644 $srcdir/initramfs.cpio -t "$pkgdir/usr/share/$pkgname/"
|
|
|
|
|
}
|
|
|
|
|
|