void-packages/srcpkgs/tinyramfs/template

25 lines
970 B
Bash

# Template file for 'tinyramfs'
pkgname=tinyramfs
version=0.2.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=6ee152cfb083a378285a49c8e52294307458119147f795bfb7f460cb7ed1d659
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
}