# $Id: PKGBUILD 24393 2009-01-15 23:25:29Z thomas $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Aaron Griffin <aaron@archlinux.org>

pkgname=mkinitcpio
pkgver=0.5.21
pkgrel=34
pkgdesc="Advanced, modular initramfs image creation utility"
arch=(i686 x86_64)
url="http://www.archlinux.org/"
license=('GPL')
groups=('base')
depends=('klibc>=1.5.14-2' 'klibc-extras>=2.5' 'klibc-udev>=130'
         'gen-init-cpio' 'klibc-module-init-tools' 'coreutils'
         'bash' 'klibc-kbd' 'findutils' 'sed' 'grep'
         'filesystem>=2009.01' 'udev' 'gzip' 'fbsplash')
source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.bz2 mkinitcpio.conf.diff)
backup=(etc/mkinitcpio.conf)
replaces=('mkinitrd' 'mkinitramfs')
md5sums=('d6673e8966d7c1f224c767d79434ed6b'
	 '288d1555e8499cd791b693945ba9b3b1')

build()
{
  cd $startdir/src/${pkgname}-${pkgver}
  patch -p0 < ../mkinitcpio.conf.diff
  ./install.sh $startdir/pkg
  mkdir -p $pkgdir/usr/share
  mv $pkgdir/usr/man $pkgdir/usr/share
}