jobcore/mkinitcpio/PKGBUILD

91 lines
2.2 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=mkinitcpio
pkgver=31
pkgrel=02
pkgdesc='Modular initramfs image creation utility w/o systemd'
_url='https://github.com/archlinux/mkinitcpio'
url="https://sources.archlinux.org/other"
source=(
"$url/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
'001-remove-systemd-and-kept-gzip-as-default.patch'
'add_udev_rule_function.patch'
)
makedepends=(
'binutils'
'asciidoc'
'sed'
)
arch=(x86_64)
install=mkinitcpio.install
depends=(
'mkinitcpio-busybox>=1.19.4-2'
'kmod'
'util-linux>=2.23'
'libarchive'
'coreutils'
'awk'
'bash'
'findutils'
'grep'
'filesystem>=2021.10-17'
'gzip'
'lz4'
'sed'
)
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'
'zstd: Use zstd compression for the initramfs image'
'mkinitcpio-nfs-utils: Support for root filesystem on NFS'
)
backup=(
'etc/mkinitcpio.conf'
)
provides=(
"mkinitcpio=$pkgver-$pkgrel"
'initramfs'
)
prepare() {
cd $pkgname-$pkgver
## Apply 0003-remove-systemd.patch
patch -Np1 < $srcdir/001-remove-systemd-and-kept-gzip-as-default.patch
patch -Np1 < $srcdir/add_udev_rule_function.patch
}
check() {
make -C $pkgname-$pkgver check
}
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
}
#---- license gpg-key sha256sums ----
license=(GPL)
validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB') # Giancarlo Razzolini
sha256sums=(8f2811250b852ab78375bf90e1a7430daa132e57e128b0f6eaadddd9b27bbc63 # mkinitcpio-31.tar.gz
493e04724241e28d9d089bf09748f36b79fd455cb4e62c2e5c8c3d5fb67b6d62 # mkinitcpio-31.tar.gz.sig
a7dcad6ec0a3ea32896f2ca218ea4ba1550feaed25d58ed609bfbb7f9fd03619 # 001-remove-systemd-and-kept-gzip-as-default.patch
0fd3bc75aeb24d3ac272e2f8500fe289ec8606295b25fa299b80ac0834efdbe8) # add_udev_rule_function.patch