# Description: An event-driven initramfs infrastructure
# URL: https://dracut.wiki.kernel.org/index.php/Main_Page
# Maintainer: Matt Housh, jaeger at crux dot ninja

name=dracut
version=060
release=1
source=(https://crux.nu/files/$name-$version.tar.xz \
    https://crux.nu/files/$name-man-pages-$version.tar.xz)

build() {
    cd $name-$version
    ./configure --prefix=/usr \
        --sysconfdir=/etc \
        --disable-documentation
    make
    make DESTDIR=$PKG install
    rm $PKG/usr/lib/$name/modules.d/*/README*
    cp -r $SRC/usr $PKG/
}
