PKGBUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): David Runge <dvzrv@archlinux.org>
  3. _pkgname=mkinitcpio-archiso
  4. pkgname=mkinitcpio-parabolaiso
  5. pkgver=68
  6. _commit=2ac885187f6dc610254c2fd1a6bb8e13f6e739fa #refs/tags/v68
  7. pkgrel=1.1
  8. pkgdesc="Initcpio scripts used by parabolaiso"
  9. arch=(any)
  10. url="https://gitlab.archlinux.org/mkinitcpio/mkinitcpio-archiso"
  11. license=(GPL3)
  12. depends=(bash device-mapper mkinitcpio)
  13. makedepends=(git)
  14. checkdepends=(shellcheck shfmt)
  15. optdepends=(
  16. 'curl: for PXE over HTTP'
  17. 'gnupg: for PGP signature verification of rootfs over PXE'
  18. 'mkinitcpio-nfs-utils: for PXE over NFS'
  19. 'nbd: for PXE over NBD'
  20. 'openssl: for CMS signature verification of rootfs over PXE'
  21. 'pv: for status display during copy to RAM'
  22. )
  23. source=("${pkgname}::git+https://gitlab.archlinux.org/mkinitcpio/${_pkgname}.git#tag=$_commit?signed")
  24. sha256sums=('SKIP')
  25. validpgpkeys=(
  26. '991F6E3F0765CF6295888586139B09DA5BF0D338' # David Runge <dvzrv@archlinux.org>
  27. 'BB8E6F1B81CF0BB301D74D1CBF425A01E68B38EF' # nl6720 <nl6720@archlinux.org>
  28. )
  29. provides=("$_pkgname=$pkgver")
  30. conflicts=("$_pkgname")
  31. replaces=("${conflicts[@]}")
  32. prepare() {
  33. find $pkgname -type l -o -type f -not -path "$pkgname/.*" | while read -r file; do
  34. if [[ -f "$file" ]]; then
  35. sed -i "$file" -e '
  36. s|Arch Linux|Parabola GNU/Linux-libre|g;
  37. s|archiso|parabolaiso|g;
  38. s|ARCHISO|PARABOLAISO|g;
  39. s|ARCH|PARA|g;
  40. s|parabolaisobasedir=".*"|parabolaisobasedir="parabola"|;
  41. s|dm_snap_prefix=".*"|dm_snap_prefix="parabola"|;
  42. s|/arch/|/parabola/|;
  43. '
  44. fi
  45. if [[ "$file" =~ "archiso" ]]; then
  46. mv -v "$file" "${file/archiso/parabolaiso}"
  47. fi
  48. done
  49. }
  50. check() {
  51. make -k check -C $pkgname
  52. }
  53. package() {
  54. make DESTDIR="$pkgdir/" PREFIX=/usr install -C $pkgname
  55. }