archrelease: copy trunk to extra-x86_64
[arch-packages.git] / dracut / trunk / PKGBUILD
blob829a1a6cef152e80ded9e74366a4c3a4dd1ac850
1 # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
2 pkgname=dracut
3 pkgver=056
4 pkgrel=2
5 pkgdesc="An event driven initramfs infrastructure"
6 arch=('x86_64')
7 url="https://dracut.wiki.kernel.org"
8 license=('GPL')
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'
22             'SKIP'
23             'dfbef5ee06fd0f7b51bfd3571eb284272d7694754eaf232cf1a14f3b2f95a67c87098fabf6d88068ef7e235e717bec26024a3b342c5dba940b8600799cef0791')
24 validpgpkeys=(
25   '7F3D64824AC0B6B8009E50504BC0896FB5693595' # Harald Hoyer <harald@redhat.com>
28 prepare() {
29   cd "$srcdir/${pkgname}-${pkgver}"
31   patch -Np1 < ../dracut-systemd-253.patch
34 build() {
35   local prefix=/usr sysconfdir=/etc
36   
37   cd "$srcdir/${pkgname}-${pkgver}"
39   ./configure \
40     --sysconfdir=${sysconfdir} \
41     --prefix=${prefix} \
42     --libdir=${prefix}/lib \
43     --systemdsystemunitdir=${prefix}/lib/systemd/system \
44     --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
45   make
48 package() {
49   cd "$srcdir/${pkgname}-${pkgver}"
51   DESTDIR="$pkgdir" make install