core/mkinitcpio/PKGBUILD

32 lines
1.4 KiB
Bash
Raw Normal View History

2010-03-13 23:25:19 +08:00
pkgname=mkinitcpio
2016-02-05 10:37:46 +08:00
pkgver=19
pkgrel=2
2010-03-13 23:25:19 +08:00
pkgdesc="Modular initramfs image creation utility"
arch=('x86_64')
2010-03-13 23:25:19 +08:00
url="http://www.archlinux.org/"
license=('GPL')
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'
'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'
'mkinitcpio-nfs-utils: Support for root filesystem on NFS')
backup=('etc/mkinitcpio.conf')
2012-09-09 12:17:16 +08:00
install=mkinitcpio.install
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
package() {
2014-02-27 06:01:17 +08:00
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
}