aboutsummaryrefslogtreecommitdiffstats
path: root/main/dbus/APKBUILD
blob: 9b7adf171af43d2d15fb89b9819b11ac8738fb59 (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
69
70
71
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dbus
pkgver=1.10.0
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 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
	fix-int64-print.patch
	$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
	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="5af6297348107a906c8449817a728b3b  dbus-1.10.0.tar.gz
2b6e9fa870408350ba0a35570540942b  fix-int64-print.patch
fc7a1faf3ce3cc311ddb4e6494a18cd1  dbus.initd"
sha256sums="1dfb9745fb992f1ccd43c920490de8caddf6726a6222e8b803be6098293f924b  dbus-1.10.0.tar.gz
b1ebb04883d37338d1d3aa5febdc1d05b41cbbbb013fead7ad8148c1beb1d263  fix-int64-print.patch
30084902702e1de4ba7447e63c6b392f56bfbb87f846e5e9659c4e80e93121fe  dbus.initd"
sha512sums="bc622cc322df031d18946dc3f340fe918f995caf4356078ecf41106d0e1ec62a3520f97c682937e529a8787608d754a699da7c051cc51d052a04fd63115a2f05  dbus-1.10.0.tar.gz
e3cde4e0dff0e808dc96720ad548616e2441c65bd07a90f730a333eaa4aa034b7dbb1bad1ee4fba33a85874a3679c44f8a29a04d1cb9921d2f8715bbdb7a37ad  fix-int64-print.patch
df74e7d6a4f76f777d356e94bd23422b17656aa51a5b2d3c655fcabb32c84f2f06b9f5cd8827920d51842f89e8c0d968a6e723315e4bf216e55711fcda9b0ee9  dbus.initd"