mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 12:29:02 +08:00
60 lines
1.5 KiB
Bash
60 lines
1.5 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: inkane@chakra-project.org
|
|
# contributor: abveritas@chakra-project.org
|
|
|
|
pkgname=dbus
|
|
pkgver=1.6.12
|
|
pkgrel=3
|
|
pkgdesc="Freedesktop.org message bus system"
|
|
url="http://www.freedesktop.org/Software/dbus"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL' 'custom')
|
|
depends=('expat' 'coreutils' 'libx11' 'systemd')
|
|
source=("http://dbus.freedesktop.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
"systemd-user-session.patch"
|
|
'30-dbus')
|
|
provides=("dbus-core=${pkgver}")
|
|
conflicts=("dbus-core")
|
|
replaces=("dbus-core")
|
|
md5sums=('a70edc50524f258eaf5c9a9994ed8748'
|
|
'baa6689b6df440d2036edebd40e3c41e'
|
|
'3314d727fa57fc443fce25b5cbeebbcc')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--libexecdir=/usr/lib/dbus-1.0 \
|
|
--with-dbus-user=81 \
|
|
--with-system-pid-file=/run/dbus/pid \
|
|
--disable-verbose-mode \
|
|
--disable-static \
|
|
--enable-inotify \
|
|
--disable-dnotify \
|
|
--disable-tests \
|
|
--disable-asserts \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
--enable-systemd
|
|
|
|
patch -p1 < "$srcdir/systemd-user-session.patch"
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
rm -rf "$pkgdir/var/run"
|
|
|
|
install -Dm755 -d "${pkgdir}/etc/X11/xinit/xinitrc.d/30-dbus"
|
|
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/dbus/COPYING"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|