PKGBUILD 2.9 KB

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