PKGBUILD 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Contributor: Luke Shumaker <lukeshu@parabola.nu>
  3. # Contributor: Freemor <freemor@freemor.ca>
  4. # Maintainer (aur:plymouth-nosystemd): Chris Cromer <chris@cromer.cl>
  5. # Maintainer (aur:plymouth): Sebastian Lau <lauseb644@gmail.com>
  6. # Contributor: Damian01w <damian01w@gmail.com>
  7. # Contributor: Padfoot <padfoot@exemail.com.au>
  8. pkgbase=plymouth
  9. pkgname=(plymouth plymouth-nosystemd)
  10. pkgver=0.9.4
  11. pkgrel=1
  12. pkgdesc="A graphical boot splash screen with kernel mode-setting support"
  13. url="http://www.freedesktop.org/wiki/Software/Plymouth/"
  14. arch=('i686' 'x86_64' 'armv7h')
  15. license=('GPL')
  16. depends=('libdrm' 'pango' 'libudev')
  17. makedepends=('docbook-xsl')
  18. optdepends=('ttf-dejavu')
  19. backup=('etc/plymouth/plymouthd.conf')
  20. options=('!libtool' '!emptydirs')
  21. source=("http://www.freedesktop.org/software/${pkgbase}/releases/${pkgbase}-${pkgver}.tar.xz"
  22. 'plymouth.encrypt_hook'
  23. 'plymouth.encrypt_install'
  24. 'plymouth.initcpio_hook'
  25. 'plymouth.initcpio_install'
  26. 'sd-plymouth.initcpio_install'
  27. 'parabola-logo.png'
  28. 'gdm-plymouth.service'
  29. 'lxdm-plymouth.service'
  30. 'lightdm-plymouth.service'
  31. 'slim-plymouth.service'
  32. 'sddm-plymouth.service'
  33. 'plymouth-deactivate.service'
  34. 'plymouth-start.service'
  35. 'plymouth-start.path'
  36. 'plymouth-quit.service.in.patch'
  37. 'plymouth-update-initrd.patch')
  38. sha1sums=('644d14c842075a38ae7dcf0325be32628ae6f04f'
  39. '7e27ca6140424efb82fd1c962a301dc07ffa2133'
  40. '798f7916cfaff2a3501f3da1f54c2ae4714d6d26'
  41. 'c492081c0ce4418db48c943639e24c2ca10ad735'
  42. 'c0e4bfffa3b8761dd12101f93359c8cd3c62d8fa'
  43. '68f3beecfba9f3d9323dc70f077d7d4e5bfbbde8'
  44. 'c22f7198a56c2a9ba687b4b59f732b37db67a0f9'
  45. '78b854fb3939fd9f54e59bbda08b046f1b3649c4'
  46. '59ad64c616eec35c87ac34c68e79ca0df0276f7c'
  47. '9d15546767d0128c863258b8d06f12258e3d1e18'
  48. '55b5b54c7a972fb974eb759cfbd2d3a55225f189'
  49. '4e18b05e35f70a3c76b66ac7b4706936b64ffb93'
  50. '7e01cb2811de735b358290b71c3db028f4bfcf1f'
  51. '621121aef7ece1027ff349d66209f34cf30d4695'
  52. 'a6a32472e05c564a0d701e0cf9a12004bf6293c1'
  53. '9cb560bf8c27bae22e58c5d593af93147eea74d1'
  54. '5d0eb611bcbe318bed38e0f434299c01adbd88dd')
  55. prepare() {
  56. cd "$srcdir/${pkgbase}-${pkgver}"
  57. patch -p1 -i $srcdir/plymouth-update-initrd.patch
  58. patch -p1 -i $srcdir/plymouth-quit.service.in.patch
  59. }
  60. _build() {
  61. mkdir -p "$srcdir/$1"
  62. cd "$srcdir/$1"
  63. shift
  64. ../"${pkgbase}-${pkgver}"/configure \
  65. --prefix=/usr \
  66. --exec-prefix=/usr \
  67. --sysconfdir=/etc \
  68. --localstatedir=/var \
  69. --libdir=/usr/lib \
  70. --libexecdir=/usr/lib \
  71. --sbindir=/usr/bin \
  72. --enable-drm \
  73. --enable-tracing \
  74. --enable-pango \
  75. --enable-gtk=no \
  76. --with-release-file=/etc/os-release \
  77. --with-background-color=0x000000 \
  78. --with-background-start-color-stop=0x000000 \
  79. --with-background-end-color-stop=0x4D4D4D \
  80. --without-rhgb-compat-link \
  81. --without-system-root-install \
  82. "$@"
  83. make
  84. }
  85. _package() {
  86. cd "$srcdir/$1"
  87. make DESTDIR="$pkgdir" install
  88. install -Dm644 "$srcdir/parabola-logo.png" "$pkgdir/usr/share/plymouth/parabola-logo.png"
  89. install -Dm644 "$srcdir/plymouth.encrypt_hook" "$pkgdir/usr/lib/initcpio/hooks/plymouth-encrypt"
  90. install -Dm644 "$srcdir/plymouth.encrypt_install" "$pkgdir/usr/lib/initcpio/install/plymouth-encrypt"
  91. install -Dm644 "$srcdir/plymouth.initcpio_hook" "$pkgdir/usr/lib/initcpio/hooks/plymouth"
  92. install -Dm644 "$srcdir/plymouth.initcpio_install" "$pkgdir/usr/lib/initcpio/install/plymouth"
  93. install -Dm644 "$pkgdir/usr/share/plymouth/plymouthd.defaults" "$pkgdir/etc/plymouth/plymouthd.conf"
  94. }
  95. build() {
  96. _build build-systemd --enable-systemd-integration
  97. _build build-nosystemd --disable-systemd-integration
  98. }
  99. package_plymouth() {
  100. depends+=('systemd-sysvcompat')
  101. _package build-systemd
  102. install -Dm644 "$srcdir/sd-plymouth.initcpio_install" "$pkgdir/usr/lib/initcpio/install/sd-plymouth"
  103. # TODO: Some of these override units installed by `make install`.
  104. # What's wrong with the upstream unit files? We should patch them,
  105. # rather than overriding them completely.
  106. install -Dm644 -t "$pkgdir/usr/lib/systemd/system" -- \
  107. "$srcdir/plymouth-deactivate.service" \
  108. "$srcdir/plymouth-start.service" \
  109. "$srcdir/plymouth-start.path" \
  110. "$srcdir"/{gdm,sddm,lxdm,slim,lightdm}-plymouth.service
  111. install -Dm644 "$pkgdir/usr/share/plymouth/plymouthd.defaults" "$pkgdir/etc/plymouth/plymouthd.conf"
  112. }
  113. package_plymouth-nosystemd() {
  114. pkgdesc+=' (for non-systemd systems)'
  115. conflicts+=("$pkgbase" 'systemd-sysvcompat')
  116. provides+=("$pkgbase=$pkgver")
  117. _package build-nosystemd
  118. }