updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / dracut-git / PKGBUILD
bloba48b65b78a73eb525fa4ef07379eacfa7853649a
1 # Maintainer: Jon Nordby <jononor@gmail.com>
3 _pkgname=dracut
4 pkgname=dracut-git
5 pkgver=20110528
6 pkgrel=1
7 pkgdesc="Generic, modular, cross-distribution initramfs generation tool"
8 arch=('i686' 'x86_64')
9 url="https://dracut.wiki.kernel.org/"
10 license=('GPL')
11 depends=()
12 provides=($_pkgname)
13 conflicts=($_pkgname)
14 optdepends=('cryptsetup' 'lvm2')
15 makedepends=('git' 'docbook-xsl')
16 backup=('etc/dracut.conf')
17 install=
18 source=()
19 noextract=()
20 md5sums=()
22 _gitroot="git://git.kernel.org/pub/scm/boot/dracut/dracut.git "
23 _gitname="dracut"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
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"
43   # BUILD
44   make sysconfdir=/etc || return 1
47 package() {
48   cd "$srcdir/$_gitname-build"
49   make DESTDIR="${pkgdir}" sysconfdir=/etc install
50