# $Id: PKGBUILD 161860 2012-06-15 22:35:26Z dreisner $ # Maintainer: Dave Reisner # Maintainer: Thomas Bächler pkgname=mkinitcpio pkgver=0.9.2 pkgrel=4 pkgdesc="Modular initramfs image creation utility" arch=('any') url="http://www.archlinux.org/" license=('GPL') depends=('awk' 'mkinitcpio-busybox>=1.19.4-2' 'kmod>=3' 'util-linux>=2.21' 'libarchive' 'coreutils' 'bash' 'findutils' 'grep' 'filesystem>=2011.10-1' 'file' 'gzip' 'systemd-tools') optdepends=('xz: Use lzma or xz compression for the initramfs image' 'bzip2: Use bzip2 compression for the initramfs image' 'lzop: Use lzo compression for the initramfs image' 'mkinitcpio-nfs-utils: Support for root filesystem on NFS') backup=('etc/mkinitcpio.conf') source=("ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz" 0001-Update-module-filter-to-be-aware-of-hyphens-in-the-M.patch 0002-shutdown-don-t-alert-udev-on-disable-VGs.patch mkinitcpio.patch) install=mkinitcpio.install package() { cd "$pkgname-$pkgver" patch -Np1 <"$srcdir"/0001-Update-module-filter-to-be-aware-of-hyphens-in-the-M.patch patch -Np1 <"$srcdir"/0002-shutdown-don-t-alert-udev-on-disable-VGs.patch make DESTDIR="$pkgdir" install # compat symlink install -dm755 "$pkgdir/sbin" ln -s /usr/bin/mkinitcpio "$pkgdir/sbin/mkinitcpio" cd $pkgdir/etc patch -Np0 < $srcdir/mkinitcpio.patch || exit 1 } md5sums=('6894147b09012054e025bfbe03445cda' 'e6e2aafa24f6c9d58b483e8df4dafdec' 'ffd144b1c8b3950671dacdc1c4a5e80d' 'fa758c290731ab535c8d6995f0ff5ef0')