PKGBUILD 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
  3. # Contributor (Arch): Taijian <taijian@posteo.de>
  4. # Contributor (Arch): Sebastian Lau <lauseb644@gmail.com>
  5. # Contributor (Arch): Damian01w <damian01w@gmail.com>
  6. # Contributor (Arch): Padfoot <padfoot@exemail.com.au>
  7. # Parabola changes and rationale:
  8. # - Use Parabola logos
  9. # - Remove plymouth.install since it's just a warning about old AUR packages (unsupported by Parabola)
  10. pkgname=plymouth
  11. pkgver=24.004.60
  12. pkgrel=7
  13. pkgrel+=.parabola1
  14. pkgdesc='Graphical boot splash screen'
  15. arch=('x86_64')
  16. arch+=('i686' 'armv7h')
  17. url='https://www.freedesktop.org/wiki/Software/Plymouth/'
  18. license=('GPL-2.0-or-later')
  19. depends=('bash' 'cairo' 'cantarell-fonts' 'filesystem' 'fontconfig' 'freetype2' 'glib2' 'glibc'
  20. 'libdrm' 'libevdev' 'libpng' 'libx11' 'libxkbcommon' 'pango' 'systemd-libs'
  21. 'xkeyboard-config')
  22. makedepends=('git' 'gtk3' 'docbook-xsl' 'meson')
  23. optdepends=('gtk3: x11 renderer')
  24. backup=('etc/plymouth/plymouthd.conf')
  25. source=("git+https://gitlab.freedesktop.org/plymouth/$pkgname.git#tag=$pkgver"
  26. 'plymouth.initcpio_hook'
  27. 'plymouth.initcpio_install'
  28. 'plymouth-shutdown.initcpio_install'
  29. 'mkinitcpio-generate-shutdown-ramfs-plymouth.conf')
  30. b2sums=('a3d55f4f7be81bdf2ddd5c2b74a3fdb4e368c31fc41e12ab100ce2a7986cb418151b3df0d0316011710dd0e1ae99631166eecf80bc1dd5cc9054a4685266afed'
  31. 'afb2449b542aa3e971eab6b953c907347fdf4e499b4140a5e6736a7c99557c0d8d2fed28dbee56d84c8c619335c59bd382457d85e51145884ad0616e9095f232'
  32. 'a29a70a9c021e7b1a3b67e237fab702c8af47de8c145e9d40f1f78ea10b58c01190181c4a6c3e953c1ab131b63148aecaba77ec857973adbd495806fd74897d9'
  33. '063448411de837ed38ece935719f07fd17b18830680c9fa95b7bd39a097778186c40373590504c9b44144125986304311f528c73592c29d19043b8395e6f99c2'
  34. '7bb910b7402ad4372f1918be763421308534044c46d42e77af0aadcb7cbe13a99633805b36fa841f8ea1006ddb204ecea3031b96b05ec4e8d16150b2c7864629')
  35. prepare() {
  36. cd $pkgname
  37. # https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/302
  38. git cherry-pick -n 792fe7474a02a1facacdd52e0dcf9053da4b1f6e
  39. # https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/304
  40. git cherry-pick -n 709f21e80199ee51badff2d9b5dc6bae8af2a1a1
  41. # https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/303
  42. git cherry-pick -n 10ac8d2dc927b112ce6aeb06bc73d9c46550954c
  43. # Use mkinitcpio to update initrd
  44. sed -i 's/^dracut -f$/mkinitcpio -P/' scripts/plymouth-update-initrd
  45. # Change default theme
  46. sed -i 's/^Theme=spinner$/Theme=bgrt/' src/plymouthd.defaults
  47. }
  48. build() {
  49. arch-meson build $pkgname \
  50. -D logo=/usr/share/pixmaps/parabola-logo.png
  51. meson compile -C build
  52. # Convert logo for the spinner theme
  53. rsvg-convert '/usr/share/pixmaps/parabola-logo-text-dark.svg' -o parabola-logo-text-dark.png
  54. }
  55. package() {
  56. meson install -C build --destdir "$pkgdir"
  57. rm -r "$pkgdir/run"
  58. # Install mkinitcpio hook
  59. install -Dm644 plymouth.initcpio_hook "$pkgdir/usr/lib/initcpio/hooks/$pkgname"
  60. install -Dm644 plymouth.initcpio_install "$pkgdir/usr/lib/initcpio/install/$pkgname"
  61. # Install mkinitcpio shutdown hook and systemd drop-in snippet
  62. install -Dm644 plymouth-shutdown.initcpio_install "$pkgdir/usr/lib/initcpio/install/$pkgname-shutdown"
  63. install -Dm644 mkinitcpio-generate-shutdown-ramfs-plymouth.conf "$pkgdir/usr/lib/systemd/system/mkinitcpio-generate-shutdown-ramfs.service.d/plymouth.conf"
  64. # Install logo for the spinner theme
  65. install -Dm644 parabola-logo-text-dark.png "$pkgdir/usr/share/$pkgname/themes/spinner/watermark.png"
  66. }