1 # Maintainer: Jon Nordby <jononor@gmail.com>
7 pkgdesc="Generic, modular, cross-distribution initramfs generation tool"
9 url="https://dracut.wiki.kernel.org/"
14 optdepends=('cryptsetup' 'lvm2')
15 makedepends=('git' 'docbook-xsl')
16 backup=('etc/dracut.conf')
22 _gitroot="git://git.kernel.org/pub/scm/boot/dracut/dracut.git "
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
44 make sysconfdir=/etc || return 1
48 cd "$srcdir/$_gitname-build"
49 make DESTDIR="${pkgdir}" sysconfdir=/etc install