joborun
a452272ac4
upg pcre2 shadow sqlit xz mkinitcpio iproute2 gnupg expat efibootmngr audit archilinux-keyring
82 lines
3.4 KiB
Bash
82 lines
3.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=38.1
|
|
pkgrel=01
|
|
pkgdesc="Modular initramfs image creation utility w/o systemd zstd "
|
|
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')
|
|
conflicts=('systemd>0' 'cryptsetup<2.7.0-3' 'mdadm<4.3-2' 'lvm2<2.03.23-3')
|
|
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')
|
|
#url='https://github.com/archlinux/mkinitcpio'
|
|
#url='https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio'
|
|
url="https://sources.archlinux.org/other"
|
|
source=("$url/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
|
|
# "$pkgname-fix-path.patch::https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/commit/aced07e06b9b274439eeb90e235edf42780b4a7a.patch"
|
|
nosystemd.patch
|
|
mkinitcpio.conf)
|
|
|
|
prepare() {
|
|
cd "${pkgname}-${pkgver}"
|
|
patch -Np1 -i ../nosystemd.patch
|
|
# patch -Np1 < "$srcdir/mkinitcpio-fix-path.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"
|
|
## The following two files are provided by eudev and the ones
|
|
## provided here contain systemd commands which wouldn't work on obarun or joborun
|
|
rm -f "${pkgdir}/usr/lib/initcpio/install/udev"
|
|
rm -f "${pkgdir}/usr/lib/initcpio/hooks/udev"
|
|
|
|
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
|
|
|
|
sha512sums=('e727509badc528f45f2b193b3f49c202df41d4e75067bebd44c22ebc59f635d4a9596bc671d609d8941644f3a246267f7a199946730ba474040a1f24b94f663c'
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP')
|
|
b2sums=('625455bb1140688bcdf04c946eb6fa1da53deaa221b2c8090c173aef1d7fc617227aa0674344f3c18d5b9ab77a093725856f4f0cd3b8a33462a2ac742f0dbf11'
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP')
|
|
|
|
|
|
sha256sums=(5c63525097a3c17bfb654dacea71ed7681c3102a3684d18c319d06e57007e1cd # mkinitcpio-38.1.tar.gz
|
|
e43a102a6f2e17834e351b6206b5d45c83340b09f379c05ebc89c16cc8600d06 # mkinitcpio-38.1.tar.gz.sig
|
|
# 207972bfc62cb7bf0547fd075b55c49b9f190afc76e8f4dded1b1c79fd886d0d # mkinitcpio-fix-path.patch
|
|
c4afeb6b3300c4d50c3f01233705b542f59d6e95a7670f7efde097ea209ef5bd # nosystemd.patch
|
|
3fd3810547c39a8cb55a8ec729e8e8500c365dd345e242e6fda568c346947436) # mkinitcpio.conf
|
|
|
|
|
|
## c2909e0e2ad7d2401ffbbe1ac838b2d9c0de0c93abec246a380a60408c3c8eb2 mkinitcpio-38.1-01-x86_64.pkg.tar.lz
|