APKBUILD 890 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-dbus
3 4
_pkgname=dbus-python
pkgver=1.2.8
Roberto Oliveira's avatar
Roberto Oliveira committed
5
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
6 7
pkgdesc="Python bindings for DBUS"
url="http://www.freedesktop.org/wiki/Software/DBusBindings"
8
arch="all"
Roberto Oliveira's avatar
Roberto Oliveira committed
9
license="MIT X11"
10
depends="python2"
11
depends_dev="py-dbus"
12
makedepends="dbus-glib-dev python2-dev py2-sphinx"
Natanael Copa's avatar
Natanael Copa committed
13
subpackages="$pkgname-dev $pkgname-doc"
14
source="http://dbus.freedesktop.org/releases/dbus-python/$_pkgname-$pkgver.tar.gz"
Natanael Copa's avatar
Natanael Copa committed
15

16
builddir="$srcdir/$_pkgname-$pkgver"
17

Natanael Copa's avatar
Natanael Copa committed
18
build() {
19
	cd "$builddir"
20 21 22 23
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
24 25 26 27 28 29 30
		--enable-documentation
	make
}

check() {
	cd "$builddir"
	make test
Natanael Copa's avatar
Natanael Copa committed
31 32 33
}

package() {
34 35
	cd "$builddir"
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
36 37
}

38
sha512sums="6e486fd560944fc1461a27e6798e2c348c7fdf351602c082a0614c0a6822ff147875212bdcb1f818c0ab12470cffc613c0ffbd292cd9d445d3429bee65765905  dbus-python-1.2.8.tar.gz"