PKGBUILDs/core/mkinitcpio/PKGBUILD

62 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
2022-12-10 01:25:14 +00:00
pkgver=34
2022-12-10 00:57:11 +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')
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-12-10 00:57:11 +00:00
'0001-functions-fix-overwriting-of-symlinks-with-regular-f.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-12-10 01:25:14 +00:00
sha512sums=('cf8ab66d4609911ca6a1d2af1bfcf320eed99d29657c0ccfeca2fdc8ea00cfb6575e55645424de13fcf37aa12a39ac7b43a330c716e73e9c16a75178738ebe70'
2021-02-20 17:19:54 +00:00
'SKIP'
2022-12-10 00:57:11 +00:00
'a43e66101edc301ae893a25eee6caa83c56a790cbac1685697fb999008c8210e46ca49e0700242f8321731264084462641285954db55d3daa2c7e8b62d1cc66c'
2022-12-10 01:25:14 +00:00
'08472d71eeefa7f547033096250703138658d056ae7922841c586bb419c6ae7063b4cfa7ec8bdc0a50b10a7d18e201f10a5db98ab5fe25d6e7f0d8e801904c4a'
'e9b1bc7eb74271738c18a20cc8f4e391d7c3342c20763615ba8dadafc5259147bfad98ad059e5c1b19e3cb25f2f214a816bb8864351edef5b9db170abe4bc72d')
b2sums=('06a6c6a0951b9b6161e2db01e2956d87da303b2ec029bdd183efed3b074b176a9f107e9a723fc6a7fa157ecd703d7627d8aaa0b9290022a09e30daa46784841c'
2021-02-20 17:19:54 +00:00
'SKIP'
2022-12-10 00:57:11 +00:00
'a2ed9e8ff4b6fab1d6f6c1dae4dcf890b4434cb31ebdfe73ea54fd4af499849e2b98e565915cc331bd97f15f21d9147ee0499cf75b516562bfd7f1793e838e99'
2022-12-10 01:25:14 +00:00
'f7760eadafa2916875cf37ce22dc66d8fa0ef9c844f18e5462e37f5d5d6b5654ec515a404aeefb63fb2ec2bd6f442c42c69513800ff62e51ebf55d392d5dbc6e'
'9cd2d5c8aa9c26ee92a2c047f6f54f619102b764d76585d90a58a9d9616d09683734ca13404d8f8e7217c3bbe9ae988ea58adf7c71f7b8353079f555277c6455')
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() {
2022-12-10 00:57:11 +00:00
patch -Np1 -d "$pkgname-$pkgver" < '0001-functions-fix-overwriting-of-symlinks-with-regular-f.patch'
2021-02-20 17:19:54 +00:00
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
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
}