PKGBUILD 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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
  7. pkgname=(dbus-xdg-elogind dbus-docs)
  8. pkgver=1.12.20
  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=("https://gitlab.freedesktop.org/dbus/dbus/-/archive/dbus-$pkgver/dbus-dbus-$pkgver.tar.gz"
  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. '6958eeec07557b92a28419eb1702331ee2f0a6fd17285e37dfb6130b9fa4cf6e'
  23. '691a84ca6543ac8d1cd19e915fee7dc967dae106e72200d58b682748265501fc')
  24. provides=('dbus')
  25. conflicts=('dbus')
  26. prepare() {
  27. cd "$pkgbase-$pkgbase-$pkgver"
  28. patch -Np 1 -i ../dbus-enable-elogind.patch
  29. # Allow us to enable checks without them being fatal
  30. patch -Np1 -i ../no-fatal-warnings.diff
  31. patch -p1 -i ../dbus-launch-Move-dbus-autolaunch-stuff-to-runuser.patch
  32. NOCONFIGURE=1 ./autogen.sh
  33. }
  34. build() {
  35. cd "$pkgbase-$pkgbase-$pkgver"
  36. ./configure \
  37. --prefix=/usr \
  38. --sysconfdir=/etc \
  39. --localstatedir=/var \
  40. --libexecdir=/usr/lib/dbus-1.0 \
  41. --with-console-auth-dir=/run/console/ \
  42. --with-dbus-user=dbus \
  43. --with-system-pid-file=/run/dbus/pid \
  44. --with-system-socket=/run/dbus/system_bus_socket \
  45. --without-systemdsystemunitdir \
  46. --enable-inotify \
  47. --enable-libaudit \
  48. --disable-systemd \
  49. --disable-user-session \
  50. --enable-xml-docs \
  51. --enable-doxygen-docs \
  52. --enable-ducktype-docs \
  53. --disable-static \
  54. --enable-elogind \
  55. --enable-x11-autolaunch
  56. make
  57. }
  58. check() {
  59. make -C "$pkgbase-$pkgbase-$pkgver" check
  60. }
  61. package_dbus-xdg-elogind() {
  62. depends+=(libelogind.so libaudit.so)
  63. provides=(libdbus libdbus-1.so)
  64. conflicts=(libdbus)
  65. replaces=(libdbus)
  66. DESTDIR="$pkgdir" make -C "$pkgbase-$pkgbase-$pkgver" install
  67. rm -r "$pkgdir"/{etc,var}
  68. # We have a pre-assigned uid (81)
  69. echo 'u dbus 81 "System Message Bus"' |
  70. install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/dbus.conf"
  71. install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 "$pkgbase-$pkgbase-$pkgver"/COPYING
  72. # Split docs
  73. mv "$pkgdir/usr/share/doc" "$srcdir"
  74. }
  75. package_dbus-docs() {
  76. pkgdesc+=" (documentation)"
  77. depends=()
  78. install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 "$pkgbase-$pkgbase-$pkgver"/COPYING
  79. mv doc "$pkgdir/usr/share"
  80. }
  81. # vim:set sw=2 et: