90 lines
3.6 KiB
Bash
90 lines
3.6 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=39
|
|
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.xz"{,.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"
|
|
## 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"
|
|
rm -rf "${pkgdir}/usr/lib/systemd"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/install/systemd"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/hooks/resume"
|
|
rm -rf "${pkgdir}/usr/lib/initcpio/install/resume"
|
|
install -Dm644 "${srcdir}/mkinitcpio.conf" "${pkgdir}/etc/mkinitcpio.conf"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL-2.0-only')
|
|
|
|
validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolini
|
|
'C100346676634E80C940FB9E9C02FF419FECBE16') # Morten Linderud
|
|
|
|
sha512sums=('e727509badc528f45f2b193b3f49c202df41d4e75067bebd44c22ebc59f635d4a9596bc671d609d8941644f3a246267f7a199946730ba474040a1f24b94f663c'
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP')
|
|
b2sums=('625455bb1140688bcdf04c946eb6fa1da53deaa221b2c8090c173aef1d7fc617227aa0674344f3c18d5b9ab77a093725856f4f0cd3b8a33462a2ac742f0dbf11'
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP')
|
|
|
|
sha512sums=('50ae08ddf7596b821c89f927ff6692ca907a5045590096155ec6de64e0b5da647ff2c75d1603ab0035046096d37a6eacae383d458b1bb36bd525691b2b23c9ea'
|
|
'SKIP'
|
|
# 'SKIP'
|
|
'SKIP')
|
|
b2sums=('3a28d6711ce843aafe2868b09ba5a723e57e4fdffe905ac915aa5d224279590a10bba902933f183de33e08e96a6aad4d9e1d4752be74c011a37c4cbe83c8d645'
|
|
'SKIP'
|
|
# 'SKIP'
|
|
'SKIP')
|
|
|
|
sha256sums=(d91cfe9f04f2fd71839ce2c73ed53083573ab7e80dde9dff52ca9fd68a14d5cd # mkinitcpio-39.tar.xz
|
|
80bea6f24142a7baead2715f8f2f722ffbd3a16979a70eff8f246e5a7901ce4f # mkinitcpio-39.tar.xz.sig
|
|
# c4afeb6b3300c4d50c3f01233705b542f59d6e95a7670f7efde097ea209ef5bd # nosystemd.patch
|
|
3fd3810547c39a8cb55a8ec729e8e8500c365dd345e242e6fda568c346947436) # mkinitcpio.conf
|
|
|
|
## 93e273fa910d09a8c40928ac94b4e4a9eab24e9c062066a0d2c006d502835f37 mkinitcpio-39-01-x86_64.pkg.tar.lz
|
|
|