summaryrefslogtreecommitdiff
path: root/nonsystemd/mkinitcpio/PKGBUILD
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-11-05 21:36:10 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2021-11-12 03:19:37 -0500
commit165f126eea67aaed645903ee6288100f63448a48 (patch)
treea6367aefaf631849df21febb5a69fda115660581 /nonsystemd/mkinitcpio/PKGBUILD
parent5b7555f7e7c78812436a01e883283a7f8a19b5a1 (diff)
downloadabslibre-165f126eea67aaed645903ee6288100f63448a48.tar.gz
abslibre-165f126eea67aaed645903ee6288100f63448a48.tar.bz2
abslibre-165f126eea67aaed645903ee6288100f63448a48.zip
[mkinitcpio]: emergency [libre] package
Diffstat (limited to 'nonsystemd/mkinitcpio/PKGBUILD')
-rw-r--r--nonsystemd/mkinitcpio/PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/nonsystemd/mkinitcpio/PKGBUILD b/nonsystemd/mkinitcpio/PKGBUILD
index 5ee11d96a..d8d12a586 100644
--- a/nonsystemd/mkinitcpio/PKGBUILD
+++ b/nonsystemd/mkinitcpio/PKGBUILD
@@ -6,13 +6,16 @@
# parabola changes and rationale:
# - replace 'systemd' dep with 'udev'
-# - emergency patch (udev patch)
+# - emergency patch (mkinitcpio/udev patch #3121)
+# normally we keep core/mkinitcpio
+# !!! REMEMBER to db-remove libre/mkinitcpio !!!
+_IS_NONSYSTEMD=false
pkgname=mkinitcpio
pkgver=30
pkgrel=2
-pkgrel+=.nonsystemd1
+pkgrel+=$(${_IS_NONSYSTEMD} && echo '.nonsystemd1' || echo '.parabola2')
pkgdesc="Modular initramfs image creation utility"
arch=('any')
url='https://github.com/archlinux/mkinitcpio'
@@ -20,7 +23,7 @@ license=('GPL')
makedepends=('asciidoc')
depends=('awk' 'mkinitcpio-busybox>=1.19.4-2' 'kmod' 'util-linux>=2.23' 'libarchive' 'coreutils'
'bash' 'diffutils' 'findutils' 'grep' 'filesystem>=2011.10-1' 'zstd' 'systemd')
-depends=( ${depends[*]/systemd/udev} )
+depends=( $(${_IS_NONSYSTEMD} && echo ${depends[*]/systemd/udev} || echo ${depends[*]}) )
optdepends=('gzip: Use gzip compression for the initramfs image'
'xz: Use lzma or xz compression for the initramfs image'
'bzip2: Use bzip2 compression for the initramfs image'
@@ -30,16 +33,16 @@ optdepends=('gzip: Use gzip compression for the initramfs image'
provides=('initramfs')
backup=('etc/mkinitcpio.conf')
source=("https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
-source+=(9000-nonsystemd.patch)
+source+=( $(${_IS_NONSYSTEMD} && echo '9000-nonsystemd.patch') )
source+=(9001-udev.patch)
install=mkinitcpio.install
sha512sums=('ef43a8ddc01697fa43bede4eebad3271bbc89efa57ba7e4e9f321e8174ff2af74d857b308c5c0f37b42a91906c91c1b022f9a651c70d5d3e9dfc8dc441a60ee4'
'SKIP')
-sha512sums+=('f1ad7792b3b42397c2645e834d4b6c6a89122060455954d1ab56a71c673c3b8a8fdbbd6d722d30195211672b9075d09ac07ce6fb5d9723f56ce540709ebe4665')
+sha512sums+=( $(${_IS_NONSYSTEMD} && echo 'f1ad7792b3b42397c2645e834d4b6c6a89122060455954d1ab56a71c673c3b8a8fdbbd6d722d30195211672b9075d09ac07ce6fb5d9723f56ce540709ebe4665') )
sha512sums+=('695e70d85cf4c666b4325113f5f784b06002b0d9c626338b72bec9049a133cd5a2209d73193574da18d8ecac2fab54754cf499c18faaff5b20e2053a4d338b12')
b2sums=('2001f9ac12bfa7369ad32842956cd21b2a786cd28133b6d3256e4aa77210c78ec6cac8a710ff8c2feb5a4797c1a33ce8c8c7dfabd84d7927c08bf8377e330300'
'SKIP')
-b2sums+=('92e1969572e0022bd257f44314045f57db47821d99a40ea1290749967b50ead1cb11adaa9b79f4286fbf20a94173e0ba7f2d4f88208e31d7a03a8de4ea014396')
+b2sums+=( $(${_IS_NONSYSTEMD} && echo '92e1969572e0022bd257f44314045f57db47821d99a40ea1290749967b50ead1cb11adaa9b79f4286fbf20a94173e0ba7f2d4f88208e31d7a03a8de4ea014396') )
b2sums+=('0f53c448b2ada7923c1dbab331a0b68a9e79f402bd7e16388a6ea2da4c7d93539405e4bd86eccdaaabcdfdbb0c01c5ca337ba226b81dd8dc91f6411c4e678c64')
validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolini
'86CFFCA918CF3AF47147588051E8B148A9999C34') # Evangelos Foutras
@@ -47,7 +50,7 @@ validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolin
prepare() {
cd $pkgname-$pkgver
- patch -Np1 -i ../9000-nonsystemd.patch
+ ${_IS_NONSYSTEMD} && patch -Np1 -i ../9000-nonsystemd.patch
# https://labs.parabola.nu/issues/3121
# https://github.com/archlinux/mkinitcpio/pull/54