1 # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
5 pkgdesc="An event driven initramfs infrastructure"
7 url="https://dracut.wiki.kernel.org"
9 depends=('bash' 'coreutils' 'cpio' 'filesystem' 'findutils' 'grep' 'gzip'
10 'kmod' 'pkgconf' 'procps-ng' 'sed' 'systemd' 'util-linux' 'xz')
11 makedepends=('asciidoc' 'bash-completion' 'git')
12 optdepends=('binutils: --uefi option support'
13 'elfutils: strip binaries to reduce initramfs size'
14 'multipath-tools: dmraid dracut module support'
15 'pigz: faster gzip compression'
16 'sbsigntools: uefi_secureboot_cert/key configuration option support')
17 provides=('initramfs')
18 backup=('etc/dracut.conf')
19 source=(https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut-${pkgver}.tar{.gz,.sign}
20 dracut-systemd-253.patch)
21 sha512sums=('3a5b82976bfff9d71ca305b786fd9218849d28e0ef36356b19e558e50fefcca540dc15e6d93a15c7a8ade58d51dc32db8e4b0af924b5a9d85fa56a223501a9b6'
23 'dfbef5ee06fd0f7b51bfd3571eb284272d7694754eaf232cf1a14f3b2f95a67c87098fabf6d88068ef7e235e717bec26024a3b342c5dba940b8600799cef0791')
25 '7F3D64824AC0B6B8009E50504BC0896FB5693595' # Harald Hoyer <harald@redhat.com>
29 cd "$srcdir/${pkgname}-${pkgver}"
31 patch -Np1 < ../dracut-systemd-253.patch
35 local prefix=/usr sysconfdir=/etc
37 cd "$srcdir/${pkgname}-${pkgver}"
40 --sysconfdir=${sysconfdir} \
42 --libdir=${prefix}/lib \
43 --systemdsystemunitdir=${prefix}/lib/systemd/system \
44 --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
49 cd "$srcdir/${pkgname}-${pkgver}"
51 DESTDIR="$pkgdir" make install