2010-03-13 23:25:19 +08:00
|
|
|
pkgname=mkinitcpio
|
2016-02-05 10:37:46 +08:00
|
|
|
pkgver=19
|
2016-02-17 06:22:56 +08:00
|
|
|
pkgrel=2
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="Modular initramfs image creation utility"
|
2012-11-14 08:09:55 +08:00
|
|
|
arch=('x86_64')
|
2010-03-13 23:25:19 +08:00
|
|
|
url="http://www.archlinux.org/"
|
|
|
|
license=('GPL')
|
2016-02-17 06:22:56 +08:00
|
|
|
depends=('awk' 'mkinitcpio-busybox' 'kmod' 'util-linux' 'libarchive=3.1.2'
|
|
|
|
'coreutils' 'bash' 'findutils' 'grep' 'filesystem' 'gzip' 'systemd')
|
2016-02-05 10:37:46 +08:00
|
|
|
makedepends=('asciidoc')
|
2011-05-25 03:49:29 +08:00
|
|
|
optdepends=('xz: Use lzma or xz compression for the initramfs image'
|
2011-02-18 08:27:57 +08:00
|
|
|
'bzip2: Use bzip2 compression for the initramfs image'
|
2011-07-26 02:50:16 +08:00
|
|
|
'lzop: Use lzo compression for the initramfs image'
|
2014-12-07 05:11:53 +08:00
|
|
|
'lz4: Use lz4 compression for the initramfs image'
|
2011-02-18 08:27:57 +08:00
|
|
|
'mkinitcpio-nfs-utils: Support for root filesystem on NFS')
|
2012-02-17 03:08:16 +08:00
|
|
|
backup=('etc/mkinitcpio.conf')
|
2012-09-09 12:17:16 +08:00
|
|
|
install=mkinitcpio.install
|
2016-02-17 06:22:56 +08:00
|
|
|
source=("https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"
|
|
|
|
"microcode.patch::https://github.com/wengxt/mkinitcpio/commit/b948a50f03f9c243bb392a8f96f40b41c1e09a93.patch")
|
2016-02-05 10:37:46 +08:00
|
|
|
sha256sums=('7170e7a3d1b9ed21b0961941a327886febe80e62e2dfee6b88359ed72d0da620'
|
|
|
|
'f3b0eacc41940840904da7a56755b4641da622c4f93983a3a04131a81d4cbdc2')
|
|
|
|
|
2014-02-27 06:01:17 +08:00
|
|
|
prepare() {
|
2014-12-07 05:11:53 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
patch -Np1 -i ../microcode.patch
|
|
|
|
sed -i 's/HOOKS="base udev autodetect modconf block filesystems keyboard fsck"/HOOKS="base udev autodetect resume keymap modconf block filesystems keyboard fsck microcode"/g' mkinitcpio.conf
|
2014-02-27 06:01:17 +08:00
|
|
|
}
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2011-02-18 08:27:57 +08:00
|
|
|
package() {
|
2014-02-27 06:01:17 +08:00
|
|
|
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
|
2012-03-01 08:49:45 +08:00
|
|
|
}
|