core/mkinitcpio/PKGBUILD

38 lines
1.7 KiB
Bash
Raw Normal View History

2010-07-01 03:56:56 +08:00
#
2012-09-09 12:17:16 +08:00
# Core Packages for Chakra, part of chakra-project.org
2010-07-01 03:56:56 +08:00
#
2010-03-13 23:25:19 +08:00
pkgname=mkinitcpio
2014-12-07 05:11:53 +08:00
pkgver=18
2014-02-27 06:01:17 +08:00
pkgrel=1
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')
2014-12-07 05:11:53 +08:00
depends=('awk' 'mkinitcpio-busybox>=1.19.4-2' 'kmod' 'util-linux>=2.21' 'libarchive=3.1.2'
'coreutils' 'bash' 'findutils' 'grep' 'filesystem>=2011.10-1' 'gzip' 'systemd')
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')
2014-12-07 05:11:53 +08:00
source=("ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
'0001-avoid-compound-conditional-leading-to-spurious-error.patch'
"microcode.patch::https://github.com/wengxt/mkinitcpio/commit/5dbfa177c4578957c001c537e816c945e4084020.patch")
2012-09-09 12:17:16 +08:00
install=mkinitcpio.install
2014-12-07 05:11:53 +08:00
sha256sums=('187bdeeade08996010fbff480ccc91e47722d275c22fd6feb4a4b63061e9fc22'
'SKIP'
'f6a77a34a5d97b8c3f3aef21b97da0b5d6992244e28e9b3f71e83cbaa4473341'
'f1c61fd8f06689c35e4c965f3a61de45bc16420bf7c0c33c564f46b101112d79')
2014-02-27 06:01:17 +08:00
prepare() {
2014-12-07 05:11:53 +08:00
cd ${pkgname}-${pkgver}
patch -Np1 -i ../0001-avoid-compound-conditional-leading-to-spurious-error.patch
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
}