core/mkinitcpio/PKGBUILD

30 lines
1.2 KiB
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer: abveritas@chakra-project.org
pkgname=mkinitcpio
pkgver=0.15.0
pkgrel=3
pkgdesc="Modular initramfs image creation utility"
arch=('x86_64')
url="http://www.archlinux.org/"
license=('GPL')
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' 'file' 'gzip' 'systemd')
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"{,.sig})
install=mkinitcpio.install
sha256sums=('2a00421c5ce4abfcc971c71a6efd22f6bbaf0e541f9a93410f35e864c818c3db'
'SKIP')
package() {
sed -i 's/^HOOKS.*$/HOOKS="base systemd autodetect modconf block keymap resume filesystems keyboard"/g' ${srcdir}/${pkgname}-${pkgver}/mkinitcpio.conf
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
}