jobcore/mkinitcpio/PKGBUILD

105 lines
4.8 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/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 |---------------------------------------
2024-05-29 16:34:07 +02:00
# https://git.obarun.org/pkg/obcore/mkinitcpio # thanks to the good work by Obarun developers
# on arch's mkinitcpio > 39.0
2022-03-20 13:19:37 +01:00
pkgname=mkinitcpio
2024-05-29 16:34:07 +02:00
pkgver=39.2
2024-06-06 01:47:42 +02:00
pkgrel=03
pkgdesc="Modular initramfs image creation utility w/o systemd zstd "
2022-07-06 01:34:43 +02:00
makedepends=('binutils' 'asciidoc' 'sed')
depends=('awk' 'mkinitcpio-busybox>=1.35.0' 'kmod' 'util-linux>=2.23' 'libarchive' 'coreutils'
2024-05-29 16:34:07 +02:00
'bash' 'binutils' 'diffutils' 'findutils' 'grep' 'filesystem' 'xz' 'gzip')
2023-12-19 10:59:43 +01:00
checkdepends=('bats' 'bats-assert' 'lzop')
2024-03-05 16:01:09 +01:00
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')
2024-05-29 16:34:07 +02:00
backup=('etc/mkinitcpio.conf')
#old source location
#url='https://github.com/archlinux/mkinitcpio'
#url='https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio'
2024-05-29 16:34:07 +02:00
# source-url="https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio"
url="https://sources.archlinux.org/other"
2024-05-29 16:34:07 +02:00
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'
2024-05-29 18:42:34 +02:00
'LICENSE-obarun'
'0001-trigger.patch')
2022-03-20 13:19:37 +01:00
prepare() {
2024-05-29 16:34:07 +02:00
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
2024-05-29 18:42:34 +02:00
patch -Np1 < ../0001-trigger.patch
2022-03-20 13:19:37 +01:00
}
check() {
2024-05-29 16:34:07 +02:00
make -C $pkgname-$pkgver check
2022-03-20 13:19:37 +01:00
}
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
2024-05-29 16:34:07 +02:00
mv -f "${pkgdir}/etc/mkinitcpio.conf" "${pkgdir}/etc/mkinitcpio.conf.source"
2024-03-04 03:35:30 +01:00
## 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"
2024-05-29 16:34:07 +02:00
## 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"
2024-06-06 01:47:42 +02:00
# rm -rf "${pkgdir}/usr/share/mkinitcpio/hook.preset"
2024-05-29 16:34:07 +02:00
sed -i 's/ for systemd//' "${pkgdir}/usr/lib/initcpio/functions"
2022-11-15 16:49:16 +01:00
install -Dm644 "${srcdir}/mkinitcpio.conf" "${pkgdir}/etc/mkinitcpio.conf"
2024-05-29 16:34:07 +02:00
install -Dm644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "${srcdir}/LICENSE-obarun" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-obarun"
2022-03-20 13:19:37 +01:00
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
2024-05-29 16:34:07 +02:00
license=('GPL-2.0-only')
2022-03-20 13:19:37 +01:00
validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolini
'C100346676634E80C940FB9E9C02FF419FECBE16') # Morten Linderud
2024-05-29 16:34:07 +02:00
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
2024-05-29 18:42:34 +02:00
37deb048dd216c0b065f57fd8969dcf85c9d18f9dbd0ee3612c942037c2acc71 # LICENSE-obarun
5057c91760497912b3e5e6bd921852c1ef8cb924b2e0993996a4bd0af0ec1bba) # 0001-trigger.patch
2024-06-06 01:47:42 +02:00
## 6bcd4627d90e767f303ef7fa121d6b478586e15481ff2a7f474730bc5ae880bf mkinitcpio-39.2-03-x86_64.pkg.tar.lz
2024-03-05 16:01:09 +01:00