PKGBUILD 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
  2. # Contributor: Jan de Groot <jgc@archlinux.org>
  3. # Contributor: Tom Gundersen <teg@jklm.no>
  4. # Contributor: Link Dupont <link@subpop.net>
  5. pkgbase=dbus
  6. pkgname=(dbus dbus-docs)
  7. pkgver=1.14.0
  8. pkgrel=1
  9. pkgrel+=.nonsystemd1
  10. pkgdesc="Freedesktop.org message bus system"
  11. url="https://wiki.freedesktop.org/www/Software/dbus/"
  12. arch=(x86_64)
  13. arch+=(i686 armv7h)
  14. license=(GPL custom)
  15. depends=(libx11 libelogind expat audit)
  16. makedepends=(elogind xmlto docbook-xsl python yelp-tools doxygen git autoconf-archive)
  17. source=("git+https://gitlab.freedesktop.org/dbus/dbus.git?signed#tag=dbus-$pkgver"
  18. dbus-enable-elogind.patch
  19. no-fatal-warnings.diff)
  20. sha256sums=('SKIP'
  21. 'faffcaa5b295f49fcedeed2c9ece5298949096be3062fd99a4bf1a6ac3ad1ea0'
  22. 'c10395be67e1127a58d7173b587fbbf16f8a8b271c41293558fcf9e27c185478')
  23. validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90') # Simon McVittie <simon.mcvittie@collabora.co.uk>
  24. prepare() {
  25. cd dbus
  26. patch -Np 1 -i ../dbus-enable-elogind.patch
  27. # Allow us to enable checks without them being fatal
  28. patch -Np1 -i ../no-fatal-warnings.diff
  29. NOCONFIGURE=1 ./autogen.sh
  30. }
  31. build() {
  32. cd dbus
  33. ./configure \
  34. --prefix=/usr \
  35. --sysconfdir=/etc \
  36. --localstatedir=/var \
  37. --libexecdir=/usr/lib/dbus-1.0 \
  38. --runstatedir=/run \
  39. --with-console-auth-dir=/run/console/ \
  40. --with-dbus-user=dbus \
  41. --with-system-pid-file=/run/dbus/pid \
  42. --with-system-socket=/run/dbus/system_bus_socket \
  43. --without-systemdsystemunitdir \
  44. --enable-inotify \
  45. --enable-libaudit \
  46. --disable-systemd \
  47. --disable-user-session \
  48. --enable-xml-docs \
  49. --enable-doxygen-docs \
  50. --enable-ducktype-docs \
  51. --disable-static \
  52. --enable-elogind \
  53. --enable-x11-autolaunch
  54. make
  55. }
  56. check() {
  57. make -C dbus -j1 check
  58. }
  59. package_dbus() {
  60. depends+=(libelogind.so libaudit.so)
  61. provides=(libdbus libdbus-1.so)
  62. conflicts=(libdbus)
  63. replaces=(libdbus)
  64. DESTDIR="$pkgdir" make -C dbus install
  65. rm -r "$pkgdir"/{etc,var}
  66. # We have a pre-assigned uid (81)
  67. echo 'u dbus 81 "System Message Bus"' |
  68. install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/dbus.conf"
  69. # Split docs
  70. mkdir -p doc/usr/share
  71. mv {"$pkgdir",doc}/usr/share/doc
  72. install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 dbus/COPYING
  73. }
  74. package_dbus-docs() {
  75. pkgdesc+=" (documentation)"
  76. depends=()
  77. mv doc/* "$pkgdir"
  78. install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 dbus/COPYING
  79. }
  80. # vim:set sw=2 et: