mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 01:54:36 +08:00
42 lines
1.6 KiB
Bash
42 lines
1.6 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=mkinitcpio
|
|
pkgver=0.8.0
|
|
pkgrel=1
|
|
pkgdesc="Modular initramfs image creation utility"
|
|
arch=('any')
|
|
url="http://www.archlinux.org/"
|
|
license=('GPL')
|
|
depends=('mkinitcpio-busybox>=1.16.1-2' 'module-init-tools' 'util-linux>=2.19' 'libarchive' 'coreutils'
|
|
'bash' 'findutils' 'sed' 'grep' 'filesystem>=2011.10-1' 'udev>=174-1' 'file' 'gzip')
|
|
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')
|
|
replaces=('mkinitrd' 'mkinitramfs' 'klibc' 'klibc-extras' 'klibc-kbd'
|
|
'klibc-module-init-tools' 'klibc-udev')
|
|
backup=(etc/mkinitcpio.conf)
|
|
source=("ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"
|
|
'0001-init_functions-redirect-poll_device-output-to-stderr.patch')
|
|
sha256sums=('097faaf23aaa6d442e7cc6add7238698abfea4185e7d125dcffd74d0ea159246'
|
|
'6363d006ae95e7bc7f3bba0b9f2596c3180aa450b1a3f0daad1095e47a774b50')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
# backport fix for FS#27385
|
|
patch -Np1 < "$srcdir"/0001-init_functions-redirect-poll_device-output-to-stderr.patch
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
mkdir "$pkgdir/sbin"
|
|
ln -s /usr/bin/mkinitcpio "$pkgdir/sbin/mkinitcpio"
|
|
} |