Commit 79131a0c authored by Thomas Liske's avatar Thomas Liske

main/py-dbus: fix packaging

parent e221aa99
Pipeline #11593 passed with stages
in 5 minutes and 19 seconds
......@@ -3,13 +3,13 @@
pkgname=py-dbus
_pkgname=dbus-python
pkgver=1.2.14
pkgrel=0
pkgrel=1
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"
makedepends="dbus-glib-dev python2-dev py-setuptools python3-dev py3-setuptools 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"
......@@ -23,12 +23,15 @@ prepare() {
}
build() {
python2 setup.py build --build-base ../build-python2
cd ../build-python2
"$builddir/configure" \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make
cd "$builddir"
python3 setup.py build --build-base ../build-python3
cd ../build-python3
"$builddir/configure" \
--build=$CBUILD \
......@@ -45,8 +48,11 @@ check() {
}
package() {
python2 setup.py install --skip-build --prefix=/usr --root="$pkgdir"
cd "../build-python2"
make DESTDIR="$pkgdir" install
cd "$builddir"
python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"
cd "../build-python3"
make DESTDIR="$pkgdir" install
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment