APKBUILD 747 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-dbus
3 4
pkgver=1.1.0
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 15 16
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
build() {
	cd "$_builddir"
17 18
	./configure --prefix=/usr \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
19
	make || return 1
20
	make test || return 1
Natanael Copa's avatar
Natanael Copa committed
21 22 23 24 25
}

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

29
md5sums="41a459bbbb5fd92eeebd632623af0bd7  dbus-python-1.1.0.tar.gz"