summaryrefslogtreecommitdiffstats
path: root/abs/core/mkinitcpio/PKGBUILD
blob: 32b9fdb1733a42bd6bd579888df450ba9985e465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $Id: PKGBUILD 161860 2012-06-15 22:35:26Z dreisner $
# Maintainer: Dave Reisner <dreisner@archlinux.org>
# Maintainer: Thomas Bächler <thomas@archlinux.org>

pkgname=mkinitcpio
pkgver=0.9.2
pkgrel=3
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'
         'e317ad4c65eae59eb75bd8adba8b0b4c')