PKGBUILDs/core/mkinitcpio/PKGBUILD

61 lines
3.3 KiB
Bash
Raw Normal View History

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
2024-05-04 03:02:06 +00:00
pkgver=39
2024-03-13 23:45:27 +00:00
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'
2024-05-04 03:02:06 +00:00
license=('GPL-2.0-only')
2021-02-19 03:03:40 +00:00
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')
2024-05-04 03:02:06 +00:00
checkdepends=('bats' 'bats-assert' 'lzop')
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')
2024-05-04 03:02:06 +00:00
source=("https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz"{,.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')
2024-05-04 03:02:06 +00:00
sha512sums=('50ae08ddf7596b821c89f927ff6692ca907a5045590096155ec6de64e0b5da647ff2c75d1603ab0035046096d37a6eacae383d458b1bb36bd525691b2b23c9ea'
2021-02-20 17:19:54 +00:00
'SKIP'
2024-05-04 03:02:06 +00:00
'f8110186cb107b21f1234f53aea34aee1906b7f9b663fb212f455d53860debe52d0852abcde9ed7d911cbc36c86ad7213243678c25c517b0b9bcc13bd61ad17b'
'23dd4a2046bb1370917fff7a4922c287a7314a9dea7623eafad0caba197763bff585d3afa9cea22c5e0d4ee2a21471ce79a8690614905632f4acd4145f314e4e'
'f6e3f5f8c97002d28a5eb7f9ad4327d76f4f6d1f072cb9f8d3473264424c76eb3417afcc69dae8fd53c9196f47fc2052a9bd2fbbd46eba49d1e6096b8bd119bb')
b2sums=('3a28d6711ce843aafe2868b09ba5a723e57e4fdffe905ac915aa5d224279590a10bba902933f183de33e08e96a6aad4d9e1d4752be74c011a37c4cbe83c8d645'
2021-02-20 17:19:54 +00:00
'SKIP'
2024-05-04 03:02:06 +00:00
'04fbfd50700e5108738552a3fa16f891d3eced3a64b076834a2ac71cba45d073b701e0700bd9919be36680ed971a58bbcd93b3f65613eb1e836aaafcc3db37ab'
'2e5a30cc77f9108ee0f31540d22081817c3c223f5db27e3b9ae1bb8625f7ae2689bea4300872fdf646f8b19df7d8f3aff71790b1968a2a2e208dcb75a185d73e'
'e10126da8fb8d47217b56fe9af72c1b16ea6940465081811d2ef55c21b64c67c72a2d2a565728dd9ed6ab06e4bfc62952f202b2b3dce2a3db046f8961f1c6f39')
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"
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
}