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-12-04 00:33:17 +00:00
|
|
|
pkgver=37.1
|
2023-12-18 21:10:55 +00:00
|
|
|
pkgrel=2
|
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')
|
2023-12-18 21:10:55 +00:00
|
|
|
checkdepends=('bats' '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}
|
2023-12-18 21:10:55 +00:00
|
|
|
test-use-system-library-loading-mechanism.patch
|
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-12-04 00:33:17 +00:00
|
|
|
sha512sums=('68fd36eb95317977dfb389be8bd1f6f09d455ca81b55cde8f64245fc59ceee74afa64b55dbb7e8b2e28abe8274397dbba2f4b021499f9ad6d662175ced678585'
|
2021-02-20 17:19:54 +00:00
|
|
|
'SKIP'
|
2023-12-18 21:10:55 +00:00
|
|
|
'c9a0dc49e7a22808f0556c79da3320edb93377d775c91343b2a1380aebde4e255b5e675e53a00192c73e4ea9a98a91b05b56c9d56d9e7537847274710115a6ae'
|
2023-11-16 20:07:08 +00:00
|
|
|
'24f8431b23ee039fc1aee7b10482d310a8fe37a36975e83aa31d3d0d35d12973c1397057876425fe712be25e999b10753ae05613f3900eccfe5af47e86eda202'
|
|
|
|
'e7c14829c0b5c1330819bfef00923f92a1eb59f6d9cf41b8ac421dc970497b9c75e093b37a41f63aa75f9c11ba3ac72c5385d3a00c6a7686cfda82a1a9ad1883'
|
|
|
|
'd16c37550da527ef1ca1451c9c81c52197f10a30dfa91aa434a55562f06d4ac97c90f1cb3008b1ba612d6ccf3a46683e001a6e2ba04088d2169274e561183f24')
|
2023-12-04 00:33:17 +00:00
|
|
|
b2sums=('0b43d0d035fdba6195ca0e8facd654cbcff9c99d34d14b1f493c86cbea335c8f363e6117df7f0307e55b3e684fe7977d89ac226b79ed612270791e084b46aa4f'
|
2021-02-20 17:19:54 +00:00
|
|
|
'SKIP'
|
2023-12-18 21:10:55 +00:00
|
|
|
'11b8297ce18d47a0029490b950180801e5762ad7b7e36383d2f954cbc7aee10d3b901dd2703fd07b23b38aa6b74577b7d88a1d9eb5ff5633a665610c6fbec51b'
|
2023-11-16 20:07:08 +00:00
|
|
|
'f62db2646bb8828de66e73ea479b2276bba970c5338451e2df4122012d42f453e6fc6892702a58cf36b94f759a8ed7d2f65782067922578d81ae1aaa8cc78806'
|
|
|
|
'e0dc41210fb7b811624758022b4254c396d243460e63c86358fe46dc18510a39e021ff9c53944dffb8ec5fbd37681c47f4f83714b63751b7a57d7d9710f47cca'
|
|
|
|
'107ef9ee2623a3634a31d62b49efc316615e4c34c847f27a55886c93b2bdb87020bcd7f513ab922de730fe4a6d3bffd26a82180467c14c0993c603bc8801b5df')
|
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() {
|
2023-12-18 21:10:55 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
patch -Np1 < ../test-use-system-library-loading-mechanism.patch
|
2021-02-20 17:19:54 +00:00
|
|
|
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
|
|
|
|
}
|