104 lines
4.8 KiB
Bash
104 lines
4.8 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 |---------------------------------------
|
|
# https://git.obarun.org/pkg/obcore/mkinitcpio # thanks to the good work by Obarun developers
|
|
# on arch's mkinitcpio > 39.0
|
|
|
|
pkgname=mkinitcpio
|
|
pkgver=39.2
|
|
pkgrel=03
|
|
pkgdesc="Modular initramfs image creation utility w/o systemd zstd "
|
|
makedepends=('binutils' 'asciidoc' 'sed')
|
|
depends=('awk' 'mkinitcpio-busybox>=1.35.0' 'kmod' 'util-linux>=2.23' 'libarchive' 'coreutils'
|
|
'bash' 'binutils' 'diffutils' 'findutils' 'grep' 'filesystem' 'xz' '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')
|
|
#old source location
|
|
#url='https://github.com/archlinux/mkinitcpio'
|
|
#url='https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio'
|
|
# source-url="https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio"
|
|
url="https://sources.archlinux.org/other"
|
|
source=("$url/$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_xz_as_default.patch'
|
|
'mkinitcpio.conf'
|
|
'LICENSE'
|
|
'LICENSE-obarun'
|
|
'0001-trigger.patch')
|
|
|
|
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_xz_as_default.patch
|
|
patch -Np1 < ../0001-trigger.patch
|
|
}
|
|
|
|
check() {
|
|
make -C $pkgname-$pkgver check
|
|
}
|
|
|
|
package() {
|
|
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
|
|
mv -f "${pkgdir}/etc/mkinitcpio.conf" "${pkgdir}/etc/mkinitcpio.conf.source"
|
|
## 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"
|
|
## Remove useless systemd crap out of the pkg
|
|
rm -rf "${pkgdir}/usr/lib/systemd"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/install/systemd"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/install/sd-encrypt"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/install/sd-shutdown"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/install/sd-shutdown"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/install/sd-vconsole"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/install/resume"
|
|
# rm -rf "${pkgdir}/usr/share/mkinitcpio/hook.preset"
|
|
sed -i 's/ for systemd//' "${pkgdir}/usr/lib/initcpio/functions"
|
|
install -Dm644 "${srcdir}/mkinitcpio.conf" "${pkgdir}/etc/mkinitcpio.conf"
|
|
install -Dm644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
install -Dm644 "${srcdir}/LICENSE-obarun" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-obarun"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL-2.0-only')
|
|
|
|
validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolini
|
|
'C100346676634E80C940FB9E9C02FF419FECBE16') # Morten Linderud
|
|
|
|
sha256sums=(bc37195fab724c42e154a93e6ab797410161c07f223302898673c0e17afd8e0a # mkinitcpio-39.2.tar.xz
|
|
294d8736cf9b4b36f61bcbf0a36a3209c644a9b78bed445ca523455fba06de1d # mkinitcpio-39.2.tar.xz.sig
|
|
2f654513de710e3fddf950066597052f028149d7217db8cb9060d1cb2250ae35 # 002-add-back-lvm2-hook.patch
|
|
8ee7d899fc8e50b19b84f8d4c661ec029cac3080c5fc248b076486d14100673d # fix_manpage.patch
|
|
3e6be42413e841fac3f4a4c3d6591d5af45e62074affefa6889c1bc6ac470667 # makefile_remove_generate_shutdown_ramfs.patch
|
|
5b4a667acedee873c678a44cb41826f31201a869a76edf421fa28848f64bffd9 # remove_fsck_warning.patch
|
|
d05f780ad78760560bf9efd2f8819f2bcc14f4fd78fb189bb98a4e16678e99a2 # remove_uki_test.patch
|
|
0c94f36e971599e560398f20561eb7b979b3a9108065422f33ddf4b14f4c1547 # use_xz_as_default.patch
|
|
08e6b8ab289b77c122c7ab4b02ad2795152eb72d17b1a9e5b719fdb0be54d246 # mkinitcpio.conf
|
|
0259339beff6d1a335fc05c97ca104a54ed6baf056a69d04636950fb81e441f5 # LICENSE
|
|
37deb048dd216c0b065f57fd8969dcf85c9d18f9dbd0ee3612c942037c2acc71 # LICENSE-obarun
|
|
5057c91760497912b3e5e6bd921852c1ef8cb924b2e0993996a4bd0af0ec1bba) # 0001-trigger.patch
|
|
|
|
## 6bcd4627d90e767f303ef7fa121d6b478586e15481ff2a7f474730bc5ae880bf mkinitcpio-39.2-03-x86_64.pkg.tar.lz
|
|
|