jobcore/mkinitcpio/PKGBUILD

63 lines
2.4 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=37.3
pkgrel=01
pkgdesc="Modular initramfs image creation utility w/o systemd zstd "
#url='https://github.com/archlinux/mkinitcpio'
#url='https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio'
url="https://sources.archlinux.org/other"
makedepends=('binutils' 'asciidoc' 'sed')
install=mkinitcpio.install
depends=('awk' 'mkinitcpio-busybox>=1.35.0' 'kmod' 'util-linux>=2.23' 'libarchive' 'coreutils'
'bash' 'binutils' 'diffutils' 'findutils' 'grep' 'filesystem' 'gzip')
checkdepends=('bats' 'bats-assert' 'lzop')
optdepends=('zstd: Use zstd 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=("mkinitcpio=$pkgver-$pkgrel"
'initramfs')
#backup=('etc/mkinitcpio.conf')
source=("$url/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
nosystemd.patch
mkinitcpio.conf)
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 -i ../nosystemd.patch
}
check() {
make -C $pkgname-$pkgver check
}
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
rm -f "${pkgdir}"/usr/lib/initcpio/install/sd-*
rm -f "${pkgdir}/etc/mkinitcpio.conf"
install -Dm644 "${srcdir}/mkinitcpio.conf" "${pkgdir}/etc/mkinitcpio.conf"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL)
validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolini
'C100346676634E80C940FB9E9C02FF419FECBE16') # Morten Linderud
sha256sums=(443b0d8c370a4dc12778a10cb12eba7b088dcb3090b42519cefb6f20ae585c44 # mkinitcpio-37.3.tar.gz
753d58cee327c061e5078c8685f65aa17c1600ed0bbc6aa19ce49b8b335a5477 # mkinitcpio-37.3.tar.gz.sig
c4afeb6b3300c4d50c3f01233705b542f59d6e95a7670f7efde097ea209ef5bd # nosystemd.patch
005d909551dec1dbb417457f0277076c5087902e9256eb5f1a77af3798c7c3de) # mkinitcpio.conf
## 84ff533bf0d07c4c44ca91f2d141ae9a799c5bc99453cbaa7ed4ec27b586bd47 mkinitcpio-37.3-01-x86_64.pkg.tar.lz