PKGBUILD 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): Jan de Groot <jgc@archlinux.org>
  3. # Maintainer (Arch): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
  4. # Contributor (Arch): Tom Gundersen <teg@jklm.no>
  5. # Contributor (Arch): Link Dupont <link@subpop.net>
  6. pkgname=dbus
  7. pkgver=1.12.16
  8. pkgrel=5
  9. pkgrel+=.nonsystemd1
  10. pkgdesc="Freedesktop.org message bus system"
  11. url="https://wiki.freedesktop.org/www/Software/dbus/"
  12. arch=(x86_64 i686 armv7h)
  13. license=(GPL custom)
  14. depends=(libx11 libelogind expat audit)
  15. depends+=(libelogind.so libaudit.so)
  16. makedepends=(elogind xmlto docbook-xsl python yelp-tools doxygen git autoconf-archive)
  17. provides=(libdbus libdbus-1.so)
  18. provides+=($pkgname-{elogind,openrc})
  19. conflicts=(${provides[@]})
  20. replaces=(${provides[@]})
  21. _commit=23cc709db8fab94f11fa48772bff396b20aea8b0 # tags/dbus-1.12.16^0
  22. source=("git+https://gitlab.freedesktop.org/dbus/dbus.git#commit=$_commit"
  23. dbus-reload.hook
  24. dbus-enable-elogind.patch
  25. dbus.initd)
  26. sha256sums=('SKIP'
  27. '1335a86bb5eb68614bf13af314f1a7f5f6f68253584986e9c5b492a4585ab722'
  28. 'faffcaa5b295f49fcedeed2c9ece5298949096be3062fd99a4bf1a6ac3ad1ea0'
  29. '9964aa935b4a7d64f5970bcfcd561b06013a85ae2712444bc4c5f644364dab3b')
  30. validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90' # Simon McVittie <simon.mcvittie@collabora.co.uk>
  31. '3C8672A0F49637FE064AC30F52A43A1E4B77B059') # Simon McVittie <simon.mcvittie@collabora.co.uk>
  32. pkgver() {
  33. cd dbus
  34. git describe --tags | sed 's/^dbus-//;s/-/+/g'
  35. }
  36. prepare() {
  37. cd dbus
  38. patch -Np 1 -i ${srcdir}/dbus-enable-elogind.patch
  39. NOCONFIGURE=1 ./autogen.sh
  40. }
  41. build() {
  42. cd dbus
  43. ./configure \
  44. --prefix=/usr \
  45. --sysconfdir=/etc \
  46. --localstatedir=/var \
  47. --libexecdir=/usr/lib/dbus-1.0 \
  48. --with-console-auth-dir=/run/console/ \
  49. --with-dbus-user=dbus \
  50. --with-system-pid-file=/run/dbus/pid \
  51. --with-system-socket=/run/dbus/system_bus_socket \
  52. --without-systemdsystemunitdir \
  53. --enable-inotify \
  54. --disable-systemd \
  55. --disable-user-session \
  56. --disable-static \
  57. --disable-verbose-mode \
  58. --disable-asserts \
  59. --disable-checks \
  60. --enable-elogind \
  61. --enable-x11-autolaunch
  62. make
  63. }
  64. check() {
  65. make -C dbus check
  66. }
  67. package() {
  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. install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 dbus/COPYING
  74. # Split docs
  75. mv "$pkgdir/usr/share/doc" "$srcdir"
  76. # Init script
  77. install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
  78. install -Dm755 "$srcdir/dbus.initd" "$pkgdir/etc/init.d/dbus"
  79. install -d "${pkgdir}/etc/runlevels/default"
  80. ln -sf "/etc/init.d/dbus" "${pkgdir}/etc/runlevels/default/dbus"
  81. }
  82. # vim:set sw=2 et: