2014-12-24 22:15:36 +08:00
|
|
|
#
|
|
|
|
# Core Packages for Chakra, part of chakraos.org
|
|
|
|
#
|
|
|
|
|
|
|
|
pkgbase=dbus
|
|
|
|
pkgname=('dbus' 'libdbus')
|
2015-06-14 21:45:10 +08:00
|
|
|
pkgver=1.8.18
|
2015-02-11 10:14:42 +08:00
|
|
|
pkgrel=1
|
2014-12-24 22:15:36 +08:00
|
|
|
pkgdesc="Freedesktop.org message bus system"
|
|
|
|
url="http://www.freedesktop.org/Software/dbus"
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL' 'custom')
|
|
|
|
makedepends=('libx11' 'systemd' 'xmlto' 'docbook-xsl')
|
|
|
|
source=(http://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz
|
2015-06-14 21:45:10 +08:00
|
|
|
30-dbus.sh)
|
|
|
|
md5sums=('83e607e9ccb1c921d5b6bbea2376a36c'
|
|
|
|
'6683a05bd749929ef9442816c22c3268')
|
2014-12-24 22:15:36 +08:00
|
|
|
|
2015-02-03 04:13:34 +08:00
|
|
|
# note: remember to add the dbus group in the chroot, groupadd -g 81 dbus
|
|
|
|
|
2014-12-24 22:15:36 +08:00
|
|
|
build() {
|
|
|
|
cd dbus-$pkgver
|
|
|
|
# Note, group dbus is defined in the pkg filesystem, under the gourp file
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib/dbus-1.0 --with-dbus-user=dbus \
|
|
|
|
--with-system-pid-file=/run/dbus/pid \
|
|
|
|
--with-system-socket=/run/dbus/system_bus_socket \
|
|
|
|
--with-console-auth-dir=/run/console/ \
|
2015-02-11 10:14:42 +08:00
|
|
|
--enable-inotify --with-x --enable-x11-autolaunch\
|
2014-12-24 22:15:36 +08:00
|
|
|
--disable-verbose-mode --disable-static \
|
|
|
|
--disable-tests --disable-asserts \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
|
|
--enable-systemd
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_dbus(){
|
|
|
|
depends=('libdbus' 'expat')
|
|
|
|
optdepends=('libx11: dbus-launch support')
|
|
|
|
provides=('dbus-core')
|
|
|
|
conflicts=('dbus-core')
|
|
|
|
replaces=('dbus-core')
|
|
|
|
|
|
|
|
cd dbus-$pkgver
|
|
|
|
|
|
|
|
# Disable installation of libdbus
|
|
|
|
sed -i -e 's/^SUBDIRS = dbus/SUBDIRS =/' Makefile
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
# Remove libdbus files
|
|
|
|
rm -rf "${pkgdir}/var/run"
|
|
|
|
rm -rf "${pkgdir}/usr/lib/pkgconfig"
|
|
|
|
|
2015-06-14 21:45:10 +08:00
|
|
|
install -Dm755 ../30-dbus.sh "$pkgdir/etc/X11/xinit/xinitrc.d/30-dbus.sh"
|
2014-12-24 22:15:36 +08:00
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/dbus/COPYING"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libdbus(){
|
|
|
|
pkgdesc="DBus library"
|
|
|
|
depends=('glibc')
|
|
|
|
|
|
|
|
cd dbus-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" -C dbus install
|
|
|
|
make DESTDIR="$pkgdir" install-data-am
|
|
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/libdbus/COPYING"
|
2015-02-11 10:14:42 +08:00
|
|
|
}
|