aboutsummaryrefslogtreecommitdiffstats
path: root/main/dbus/APKBUILD
blob: 0b3bd4b9f8f97c49e93e7b4d7b377043a3bd60e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dbus
pkgver=1.8.12
pkgrel=0
pkgdesc="Freedesktop.org message bus system"
url="http://www.freedesktop.org/Software/dbus"
pkggroups="messagebus"
arch="all"
license="GPL custom"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-x11"
triggers="$pkgname.trigger=/etc/dbus-1/system.d"
depends=
makedepends="expat-dev libx11-dev pkgconfig util-linux-dev"
depends_dev="util-linux-dev"
install="$pkgname.pre-install $pkgname.post-install"
source="http://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz
	$pkgname.initd
	"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--with-xml=expat \
		--with-dbus-user=messagebus \
		--with-system-pid-file=/var/run/dbus.pid \
		--disable-verbose-mode \
		--disable-static \
		--enable-inotify \
		--disable-dnotify \
		--disable-tests \
		--disable-asserts \
		--with-x \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make -j1 DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -Dm755 "$srcdir"/dbus.initd "$pkgdir"/etc/init.d/dbus
}

libs() {
	pkgdesc="Libraries for acces D-BUS"
	replaces="dbus"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/
}

x11() {
	pkgdesc="X11-requiring add-ons for D-BUS"
	depends="dbus=$pkgver-r$pkgrel"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/dbus-launch "$subpkgdir"/usr/bin/
}

md5sums="0ca23fc84c09cb3d29b9c27811ff4475  dbus-1.8.12.tar.gz
bc835765907698a95da8d8e5bf199378  dbus.initd"
sha256sums="c91428f28d2925ba32d34ffc824bfcf4d40d5e1e67befc4bcf2202f0a862501e  dbus-1.8.12.tar.gz
98e37b8b6ed25004e48c5855d74c9361eea06d3fee13cefcc0ed10ccf452aa01  dbus.initd"
sha512sums="360168df98476eb42830350195520f09d44ec50f5f7cf4727cc92b8a98189ae25047fdc409c7a7f13b4384d82b103957301e17e143f094fb3ca9c5a5ed2ef48b  dbus-1.8.12.tar.gz
7983e77015b46c204b10948a1fcedaae53a75848919961eb1ef8878bfa11c933256642c0e3f59163e72374ce1bd33b0338c787ce067c0982fcdf8a798b922a15  dbus.initd"