blob: cd98815f2ac0fdbd7efa8d230c12f0eabaf761e9 (
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
72
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-dbus
_pkgname=dbus-python
pkgver=1.2.14
pkgrel=0
pkgdesc="Python bindings for DBUS"
url="http://www.freedesktop.org/wiki/Software/DBusBindings"
arch="all"
license="MIT"
depends_dev="py-dbus"
makedepends="dbus-glib-dev python2-dev python3-dev py3-sphinx"
checkdepends="bash dbus py3-gobject3 py3-tappy"
subpackages="$pkgname-dev $pkgname-doc py2-dbus:_py2 py3-dbus:_py3"
source="https://dbus.freedesktop.org/releases/dbus-python/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
mkdir ../build-python2
mkdir ../build-python3
default_prepare
}
build() {
cd ../build-python2
"$builddir/configure" \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make
cd ../build-python3
"$builddir/configure" \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-documentation \
PYTHON_VERSION=3
make
}
check() {
cd "../build-python3"
make check
}
package() {
cd "../build-python2"
make DESTDIR="$pkgdir" install
cd "../build-python3"
make DESTDIR="$pkgdir" install
}
_py2() {
replaces="py-dbus"
_py python2
}
_py3() {
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/$python* "$subpkgdir"/usr/lib/
}
sha512sums="773d66e40ab514639f1c5c619362659f290ddd5ae944eb8e09b5752624f3c86305b6c1d5562e290b36f1e6cf43f6d39cd4a227e18ff41499877546982ceebb51 dbus-python-1.2.14.tar.gz"
|