# Description: A message bus system # URL: https://freedesktop.org/wiki/Software/dbus # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu # Depends on: expat-32 dbus name=dbus-32 version=1.12.8 release=1 source=(https://${name%-*}.freedesktop.org/releases/${name%-*}/${name%-*}-$version.tar.gz) build() { cd ${name%-*}-$version [ -e '/usr/lib/pkgconfig/x11.pc' ] && [ ! -e '/usr/lib32/pkgconfig/x11.pc' ] && printf "\e[031mxorg-libx11 is detected on your system, please run: prt-get depinst xorg-libx11-32 before continuing with dbus-32.\033[0m\n" && exit 1 ./configure --prefix=/usr \ --libdir=/usr/lib32 \ --with-dbus-daemondir=/usr/sbin \ --localstatedir=/var \ --libexecdir=/usr/lib32/dbus \ --with-dbus-user=messagebus \ --with-init-scripts=none \ --with-system-pid-file=/var/run/dbus/dbus.pid make make DESTDIR=$PKG install rm -r $PKG/var $PKG/usr/{bin,etc,include,sbin,share} }