2021-02-19 03:03:40 +00:00
|
|
|
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
|
2022-10-25 12:34:17 +00:00
|
|
|
# Maintainer: Morten Linderud <foxboron@archlinux.org>
|
|
|
|
# Contributor: Dave Reisner <dreisner@archlinux.org>
|
|
|
|
# Contributor: Thomas Bächler <thomas@archlinux.org>
|
2021-02-19 03:03:40 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2021-02-20 17:19:54 +00:00
|
|
|
# - swap zstd for gzip in depends, remove gzip optdepend
|
|
|
|
# - patch to revert back to gzip for default compression
|
2022-03-16 04:26:49 +00:00
|
|
|
# - patch for gzip kernel image support (https://github.com/archlinux/mkinitcpio/pull/86)
|
2021-02-19 03:03:40 +00:00
|
|
|
|
|
|
|
pkgname=mkinitcpio
|
2023-03-25 05:03:32 +00:00
|
|
|
pkgver=35.2
|
|
|
|
pkgrel=1
|
2021-02-19 03:03:40 +00:00
|
|
|
pkgdesc="Modular initramfs image creation utility"
|
|
|
|
arch=('any')
|
2022-12-10 01:25:14 +00:00
|
|
|
url='https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio'
|
2021-02-19 03:03:40 +00:00
|
|
|
license=('GPL')
|
|
|
|
depends=('awk' 'mkinitcpio-busybox>=1.19.4-2' 'kmod' 'util-linux>=2.23' 'libarchive' 'coreutils'
|
2021-12-03 15:01:01 +00:00
|
|
|
'bash' 'binutils' 'diffutils' 'findutils' 'grep' 'filesystem>=2011.10-1' 'gzip' 'systemd')
|
2021-02-20 17:19:54 +00:00
|
|
|
makedepends=('asciidoc')
|
2022-12-10 01:25:14 +00:00
|
|
|
checkdepends=('bash-bats' 'bash-bats-assert' 'lzop')
|
2021-02-19 03:03:40 +00:00
|
|
|
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'
|
|
|
|
'lz4: Use lz4 compression for the initramfs image'
|
|
|
|
'mkinitcpio-nfs-utils: Support for root filesystem on NFS')
|
|
|
|
provides=('initramfs')
|
|
|
|
backup=('etc/mkinitcpio.conf')
|
2021-02-20 17:19:54 +00:00
|
|
|
source=("https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
|
2022-03-16 04:26:49 +00:00
|
|
|
'0001-use-gzip-for-compression-by-default.patch'
|
2023-03-22 01:05:52 +00:00
|
|
|
'0002-functions-handle-gzip-compressed-kernels-in-kver_gen.patch'
|
|
|
|
'0003-check-for-ALARM-kernels-in-run_post_hooks.patch')
|
2021-02-19 03:03:40 +00:00
|
|
|
install=mkinitcpio.install
|
2023-03-25 05:03:32 +00:00
|
|
|
sha512sums=('9ca8544bc5de3d215bf94ecf9a3bfb9265c9ed9871357af4b597a37e94c6951935641c11558470aaa934e8fbe9bc1f875dfa9d0fe8734a97f90154c9cbabfdba'
|
2021-02-20 17:19:54 +00:00
|
|
|
'SKIP'
|
2023-03-22 01:05:52 +00:00
|
|
|
'4205c5977d58728f6cdec22b553e000091e19b28e07c6099c14882842f964f66abf7b1b0a341e9b061e04c3c3ed1275647caf51d3770a61b60271712a8ecf74d'
|
|
|
|
'693bddd2d3e3760479c6615085a6d7426cf2a6f92a42925192658eae1bcd66ae1bc46027321a2a5538abbb21025467c42d07569024f338b7bb6d4416e9922406'
|
2023-03-22 22:03:20 +00:00
|
|
|
'4a89522a5350372ee189409529b3e5306a54520ce393eda511230c498ab6d56977e37c528904dcf01a667fa0602e5158bfe4834fd4205c835061cc8844e59b2d')
|
2023-03-25 05:03:32 +00:00
|
|
|
b2sums=('e7d56ea1de8d21271d4e94a61563af9c5f33320a46ce9f006092bb70e2161be02791dfd75b14e9c9b5ad2fbb781617f04b4e49afa93a707785c23773c1a48664'
|
2021-02-20 17:19:54 +00:00
|
|
|
'SKIP'
|
2023-03-22 01:05:52 +00:00
|
|
|
'ae8e25ab7e8d4cac52dcee7176bf132ea7cefeab67c3af69cecdf4871f50e42753dbe0c09a6fd20ef69c10a5b56bf6bc8f0614df1fd593d7a1ad3a5043f5c7b5'
|
|
|
|
'8ca2d8902ae18402c18b3874c3977953a16f3ffaad760f21aafa7f15421a034bdd10fb58962ea5e15ace7407fa1f36343ddfcdca1bcd58ef12aded22ae2cabca'
|
2023-03-22 22:03:20 +00:00
|
|
|
'20e32564bb0fafc2f742be0866f731e0a0fa0a4b009623564491d5248348e29c7d7864f97747d62298debfc341e72ba73f7393d449515db8d1630ecb36640b58')
|
2022-10-25 12:34:17 +00:00
|
|
|
validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolini
|
|
|
|
'C100346676634E80C940FB9E9C02FF419FECBE16') # Morten Linderud
|
2021-02-19 03:03:40 +00:00
|
|
|
|
2021-02-20 17:19:54 +00:00
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p1 -i ../0001-use-gzip-for-compression-by-default.patch
|
2022-03-16 04:26:49 +00:00
|
|
|
patch -p1 -i ../0002-functions-handle-gzip-compressed-kernels-in-kver_gen.patch
|
2023-03-22 01:05:52 +00:00
|
|
|
patch -p1 -i ../0003-check-for-ALARM-kernels-in-run_post_hooks.patch
|
2021-02-20 17:19:54 +00:00
|
|
|
}
|
2021-02-19 03:03:40 +00:00
|
|
|
|
|
|
|
check() {
|
|
|
|
make -C "$pkgname-$pkgver" check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
|
|
|
|
}
|