core/dbus-core/PKGBUILD

53 lines
1.6 KiB
Bash
Raw Normal View History

2011-08-31 01:57:54 +08:00
#
# Core Packages for Chakra, part of chakra-project.org
#
2012-09-09 12:17:16 +08:00
# maintainer: abveritas@chakra-project.org
2010-03-13 23:25:19 +08:00
pkgname=dbus-core
2012-09-09 12:17:16 +08:00
pkgver=1.6.4
pkgrel=3
2012-09-09 12:17:16 +08:00
pkgdesc="Freedesktop.org message bus system"
2010-03-13 23:25:19 +08:00
url="http://www.freedesktop.org/Software/dbus"
2012-09-09 12:17:16 +08:00
arch=(i686 x86_64)
2010-03-13 23:25:19 +08:00
license=('GPL' 'custom')
2012-10-04 07:38:42 +08:00
depends=('expat' 'coreutils' 'filesystem' 'shadow') # shadow for install scriptlet FS#29341
makedepends=('libx11' 'systemd')
2010-03-13 23:25:19 +08:00
options=(!libtool)
2012-09-09 12:17:16 +08:00
install=dbus.install
source=(http://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz{,.asc})
2012-09-09 12:17:16 +08:00
md5sums=('5ec43dc4554cba638917317b2b4f7640'
'3d4482ee39b49da334441c76f83bf1cb')
2010-03-13 23:25:19 +08:00
build() {
2012-09-09 12:17:16 +08:00
cd dbus-$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 \
--with-system-socket=/run/dbus/system_bus_socket \
--with-console-auth-dir=/run/console/ \
--enable-inotify --disable-dnotify \
--disable-verbose-mode --disable-static \
--disable-tests --disable-asserts \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--enable-systemd
2010-11-12 05:40:31 +08:00
make
2011-08-31 01:57:54 +08:00
}
package(){
2012-09-09 12:17:16 +08:00
cd dbus-$pkgver
make DESTDIR="$pkgdir" install
2010-03-13 23:25:19 +08:00
2012-09-09 12:17:16 +08:00
rm -f "$pkgdir/usr/bin/dbus-launch"
rm -f "$pkgdir/usr/share/man/man1/dbus-launch.1"
rm -rf "$pkgdir/var/run"
2010-03-13 23:25:19 +08:00
#install -m755 -d "$pkgdir/etc/rc.d"
#install -m755 ../dbus "$pkgdir/etc/rc.d/"
2010-03-13 23:25:19 +08:00
2012-09-09 12:17:16 +08:00
#Fix configuration file
sed -i -e 's|<user>81</user>|<user>dbus</user>|' "$pkgdir/etc/dbus-1/system.conf"
2010-03-13 23:25:19 +08:00
2012-09-09 12:17:16 +08:00
install -dm755 "$pkgdir/usr/share/licenses/dbus-core"
install -m644 COPYING "$pkgdir/usr/share/licenses/dbus-core/"
}