diff options
author | Thomas Liske <thomas@fiasko-nw.net> | 2020-03-29 19:04:42 +0200 |
---|---|---|
committer | Thomas Liske <thomas@fiasko-nw.net> | 2020-03-29 19:04:42 +0200 |
commit | 79131a0cd27ad767e0c3a8ce7c2595b3c03a0fb5 (patch) | |
tree | 0154269ee4593a8323b57576f043489802bd8d89 | |
parent | e221aa995da1278bf42be96a47e494f5d570d71b (diff) | |
download | aports-79131a0cd27ad767e0c3a8ce7c2595b3c03a0fb5.tar.bz2 aports-79131a0cd27ad767e0c3a8ce7c2595b3c03a0fb5.tar.xz |
main/py-dbus: fix packaging
-rw-r--r-- | main/py-dbus/APKBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/main/py-dbus/APKBUILD b/main/py-dbus/APKBUILD index cd98815f2a..9ffe609f99 100644 --- a/main/py-dbus/APKBUILD +++ b/main/py-dbus/APKBUILD @@ -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 } |