PKGBUILD 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Maintainer (Arch): Giancarlo Razzolini <grazzolini@archlinux.org>
  2. # Maintainer (Arch): Dave Reisner <dreisner@archlinux.org>
  3. # Maintainer (Arch): Thomas Bächler <thomas@archlinux.org>
  4. # Maintainer: David P. <megver83@parabola.nu>
  5. # parabola changes and rationale:
  6. # - replace 'systemd' dep with 'udev'
  7. # - emergency patch (mkinitcpio/udev patch #3121)
  8. # normally we keep core/mkinitcpio
  9. # !!! REMEMBER to db-remove libre/mkinitcpio !!!
  10. _IS_NONSYSTEMD=false
  11. pkgname=mkinitcpio
  12. pkgver=30
  13. pkgrel=2
  14. pkgrel+=$(${_IS_NONSYSTEMD} && echo '.nonsystemd1' || echo '.parabola2')
  15. pkgdesc="Modular initramfs image creation utility"
  16. arch=('any')
  17. url='https://github.com/archlinux/mkinitcpio'
  18. license=('GPL')
  19. makedepends=('asciidoc')
  20. depends=('awk' 'mkinitcpio-busybox>=1.19.4-2' 'kmod' 'util-linux>=2.23' 'libarchive' 'coreutils'
  21. 'bash' 'diffutils' 'findutils' 'grep' 'filesystem>=2011.10-1' 'zstd' 'systemd')
  22. depends=( $(${_IS_NONSYSTEMD} && echo ${depends[*]/systemd/udev} || echo ${depends[*]}) )
  23. optdepends=('gzip: Use gzip compression for the initramfs image'
  24. 'xz: Use lzma or xz compression for the initramfs image'
  25. 'bzip2: Use bzip2 compression for the initramfs image'
  26. 'lzop: Use lzo compression for the initramfs image'
  27. 'lz4: Use lz4 compression for the initramfs image'
  28. 'mkinitcpio-nfs-utils: Support for root filesystem on NFS')
  29. provides=('initramfs')
  30. backup=('etc/mkinitcpio.conf')
  31. source=("https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
  32. source+=( $(${_IS_NONSYSTEMD} && echo '9000-nonsystemd.patch') )
  33. source+=(9001-udev.patch)
  34. install=mkinitcpio.install
  35. sha512sums=('ef43a8ddc01697fa43bede4eebad3271bbc89efa57ba7e4e9f321e8174ff2af74d857b308c5c0f37b42a91906c91c1b022f9a651c70d5d3e9dfc8dc441a60ee4'
  36. 'SKIP')
  37. sha512sums+=( $(${_IS_NONSYSTEMD} && echo 'f1ad7792b3b42397c2645e834d4b6c6a89122060455954d1ab56a71c673c3b8a8fdbbd6d722d30195211672b9075d09ac07ce6fb5d9723f56ce540709ebe4665') )
  38. sha512sums+=('695e70d85cf4c666b4325113f5f784b06002b0d9c626338b72bec9049a133cd5a2209d73193574da18d8ecac2fab54754cf499c18faaff5b20e2053a4d338b12')
  39. b2sums=('2001f9ac12bfa7369ad32842956cd21b2a786cd28133b6d3256e4aa77210c78ec6cac8a710ff8c2feb5a4797c1a33ce8c8c7dfabd84d7927c08bf8377e330300'
  40. 'SKIP')
  41. b2sums+=( $(${_IS_NONSYSTEMD} && echo '92e1969572e0022bd257f44314045f57db47821d99a40ea1290749967b50ead1cb11adaa9b79f4286fbf20a94173e0ba7f2d4f88208e31d7a03a8de4ea014396') )
  42. b2sums+=('0f53c448b2ada7923c1dbab331a0b68a9e79f402bd7e16388a6ea2da4c7d93539405e4bd86eccdaaabcdfdbb0c01c5ca337ba226b81dd8dc91f6411c4e678c64')
  43. validpgpkeys=('ECCAC84C1BA08A6CC8E63FBBF22FB1D78A77AEAB' # Giancarlo Razzolini
  44. '86CFFCA918CF3AF47147588051E8B148A9999C34') # Evangelos Foutras
  45. prepare() {
  46. cd $pkgname-$pkgver
  47. ${_IS_NONSYSTEMD} && patch -Np1 -i ../9000-nonsystemd.patch
  48. # https://labs.parabola.nu/issues/3121
  49. # https://github.com/archlinux/mkinitcpio/pull/54
  50. # https://github.com/archlinux/mkinitcpio/commit/9ee1333a5f3302d7ddb004cf0909c94b4cff60ba.diff
  51. patch -Np1 -i ../9001-udev.patch
  52. }
  53. check() {
  54. make -C "$pkgname-$pkgver" check
  55. }
  56. package() {
  57. make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
  58. }