APKBUILD 1.1 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-dbus
3
pkgver=1.2.0
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Python bindings for DBUS"
url="http://www.freedesktop.org/wiki/Software/DBusBindings"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9 10 11 12 13 14
license="GPL LGPL"
depends="python>=2.6.5"
makedepends="pkgconfig dbus-glib-dev python-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://dbus.freedesktop.org/releases/dbus-python/dbus-python-$pkgver.tar.gz"

_builddir="$srcdir"/dbus-python-$pkgver
15 16 17 18 19

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}
Natanael Copa's avatar
Natanael Copa committed
20 21
build() {
	cd "$_builddir"
22 23 24 25
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
26
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
27
	make || return 1
28
	make test || return 1
Natanael Copa's avatar
Natanael Copa committed
29 30 31 32 33
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
34
	find $pkgdir -iname *.la -delete
Natanael Copa's avatar
Natanael Copa committed
35 36
}

37 38 39
md5sums="b09cd2d1a057cc432ce944de3fc06bf7  dbus-python-1.2.0.tar.gz"
sha256sums="e12c6c8b2bf3a9302f75166952cbe41d6b38c3441bbc6767dbd498942316c6df  dbus-python-1.2.0.tar.gz"
sha512sums="013b23e08fa1ed43f53a756587fefbc9770f7c51e93510e555acbd77230b7200693419bba9a69680d790bbaf123f4a195afa38b3eee1143da950fee0b5130bce  dbus-python-1.2.0.tar.gz"