25 lines
970 B
Bash
25 lines
970 B
Bash
# Template file for 'tinyramfs'
|
|
pkgname=tinyramfs
|
|
version=0.1.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
depends="util-linux cpio binutils kmod"
|
|
short_desc="Tiny initramfs written in POSIX shell"
|
|
maintainer="dkwo <npiazza@disroot.org>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://github.com/illiliti/tinyramfs"
|
|
distfiles="https://github.com/illiliti/tinyramfs/archive/refs/tags/${version}.tar.gz"
|
|
checksum=a78ecd56a52a02bc1f4b86ba829a957ad1f83c252bfde66562d5c3ef40be7c51
|
|
alternatives="
|
|
initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/tinyramfs/kernel-hook-postinst
|
|
initramfs:/etc/kernel.d/post-remove/20-initramfs:/usr/libexec/tinyramfs/kernel-hook-postrm
|
|
"
|
|
make_check=no # checking requires qemu, locally this still fails
|
|
conf_files="/etc/tinyramfs/config"
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/kernel-hook-postinst 755 usr/libexec/tinyramfs
|
|
vinstall ${FILESDIR}/kernel-hook-postrm 755 usr/libexec/tinyramfs
|
|
vinstall ${FILESDIR}/config 644 etc/tinyramfs
|
|
}
|