jobcore/mkinitcpio/PKGBUILD-oba
2024-05-29 17:34:07 +03:00

61 lines
2.5 KiB
Text

# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Dave Reisner <dreisner@archlinux.org>
# Contributor: Thomas Bächler <thomas@archlinux.org>
pkgname=mkinitcpio
pkgver=39.2
pkgrel=1
pkgdesc="Modular initramfs image creation utility"
arch=('any')
url='https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio'
license=('GPL-2.0-only')
depends=('awk' 'mkinitcpio-busybox>=1.19.4-2' 'kmod' 'util-linux>=2.23' 'libarchive' 'coreutils'
'bash' 'binutils' 'diffutils' 'findutils' 'grep' 'filesystem>=2011.10-1' 'gzip')
checkdepends=('bats' 'bats-assert' 'lzop')
makedepends=('asciidoc' 'git' 'sed')
optdepends=('gzip: Use gzip compression for the initramfs image'
'zstd: Use zstd compression for the initramfs image'
'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'
'mkinitcpio-nfs-utils: Support for root filesystem on NFS')
provides=('initramfs')
backup=('etc/mkinitcpio.conf')
source=("https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
'002-add-back-lvm2-hook.patch'
'fix_manpage.patch'
'makefile_remove_generate_shutdown_ramfs.patch'
'remove_fsck_warning.patch'
'remove_uki_test.patch'
'use_gzip_as_default_in_conf.patch'
'use_gzip_as_default.patch'
)
sha512sums=('e4ba9fe901da56bb116510ec0c6abeba5153e57d9545baccbc466932951b7f324aa75ef7cc3de87f966456b0365b17552f367411d62585d500e88dc5c815058b'
'SKIP')
b2sums=('7bd6bf491dd8b23d83e42834566375736cf8868d5120c7e24f4c8923eb03a64864cdda51d6a6f41373db88c29905535e4c8aa4bde172955bc7529e6b3ffc252c'
'SKIP')
validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolini
'C100346676634E80C940FB9E9C02FF419FECBE16') # Morten Linderud
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 < ../002-add-back-lvm2-hook.patch
patch -Np2 < ../fix_manpage.patch
patch -Np2 < ../makefile_remove_generate_shutdown_ramfs.patch
patch -Np2 < ../remove_fsck_warning.patch
patch -Np2 < ../remove_uki_test.patch
patch -Np2 < ../use_gzip_as_default_in_conf.patch
patch -Np2 < ../use_gzip_as_default.patch
}
check() {
make -C "$pkgname-$pkgver" check
}
package() {
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
+ # obarun udev files owend by eudev
+ rm "$pkgdir/usr/lib/initcpio/hooks/udev"
+ rm "$pkgdir/usr/lib/initcpio/install/udev"
}