summaryrefslogtreecommitdiff
path: root/repo/util/dracut.xibuild
blob: 30b86418699f12d2c578cf261ef242d3aa5ef5ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

MAKEDEPS="make asciidoc musl-fts"
DEPS="bash sbase cpio findutils grep gzip kmod pkgconf procps-ng sed util-linux xz"

DESC="An initramfs infastructure aimin gto have as little possible hardcoded into the initramfs"

PKG_VER=055
SOURCE=https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut-$PKG_VER.tar.xz
ADDITIONAL="
    fix-sbase-coreutils.patch
"

prepare () {
    apply_patches
}

build () {
    ./configure --prefix=/usr
    make sysconfdir=/etc
}

package () {
    make DESTDIR="$PKG_DEST" sysconfdir=/etc install
}