PKGBUILDs/core/mkinitcpio/PKGBUILD

60 lines
3.2 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
2022-10-25 12:34:17 +00:00
pkgver=32
2022-10-27 12:29:44 +00:00
pkgrel=2
2021-02-19 03:03:40 +00:00
pkgdesc="Modular initramfs image creation utility"
arch=('any')
2021-07-15 12:27:50 +00:00
url='https://github.com/archlinux/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')
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-10-27 12:29:44 +00:00
"fix-strip.patch::https://github.com/archlinux/mkinitcpio/commit/dece596d569ca90af902bf2403227b478b629c03.patch"
2022-03-16 04:26:49 +00:00
'0001-use-gzip-for-compression-by-default.patch'
'0002-functions-handle-gzip-compressed-kernels-in-kver_gen.patch')
2021-02-19 03:03:40 +00:00
install=mkinitcpio.install
2022-10-25 12:34:17 +00:00
sha512sums=('c180bef8af774305e8c9779b3405daaa5be33588bf89c6625a28eac1cde424f447782737d85d810fed4971d38b31086a072293d42aad08398c090f9538b56a4e'
2021-02-20 17:19:54 +00:00
'SKIP'
2022-10-27 12:29:44 +00:00
'd19718f92916e00cece4e213bd7bd1cbf55b0094a39c459aaa995442342b64eb3fe8ec0bf023074f7ea26474a6fe2dc0370e0663823ed08ec5d33f6f645b833c'
2022-10-25 12:34:17 +00:00
'bd11bae0eca29839f97baa6085a046a78e0ed60c3e923e6813c32adb2519a5ac2c99d07660419811221cd34dc19244568905ed602c8173a60727af2eb678cf4a'
'99b50c857686d021441884311e50168dce65f082a9d0300831ce2c17d21b85f2c421188cfec953a60a1bc7e4baba9d8819eee436ac2d7546b65d64ff6285e878')
b2sums=('0c29659278e662eb58bc776f99e9579b5f0cf3268175382ecf2d635d54a6a8261ae173e387503a0c20a7492656c703a6699b52e1a6693c85c3211225d3e7abf8'
2021-02-20 17:19:54 +00:00
'SKIP'
2022-10-27 12:29:44 +00:00
'2b404010d5edb4b7eac36e25f0bf1c7958b7bc7b9740a1fda859579de48dc47552d9eee1d40abb8d2ebf1dffc523a64797c834bba59a22bab9e537ad12e991c7'
2022-10-25 12:34:17 +00:00
'97da54722c7c379a07f956e0d974a132b744d7b416b733a4c5bf8947725d613e82844506387d5b57652d277a01114d46a7403a325b04b48a5b918dad668928f7'
'9a4715b80f15bf1288aefe5fa76da68e7e715c163ef2a8605d29d2c8199abea3efea0f0235abd10c8a873a82d5b7ac427f64ef76d772db56ddec4d43a36106b1')
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
2022-10-27 12:29:44 +00:00
patch -Np1 < "$srcdir/fix-strip.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
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
}