Commit 81a73dad authored by Mike Sullivan's avatar Mike Sullivan Committed by Leo
Browse files

main/py-bluez: add missing py2-setuptools dependency

parent c1696d67
......@@ -3,31 +3,30 @@
pkgname=py-bluez
_pkgname=pybluez
pkgver=0.22
pkgrel=3
pkgrel=4
pkgdesc="Python API for the BlueZ bluetooth stack"
url="http://karulis.github.io/pybluez/"
arch="all"
license="GPL-2.0"
depends=""
makedepends="python2-dev python3-dev py-setuptools bluez-dev"
license="GPL-2.0-or-later"
makedepends="python2-dev python3-dev py3-setuptools py2-setuptools bluez-dev"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$pkgname-$pkgver.tar.gz::https://github.com/karulis/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare || return 1
default_prepare
# Soure files are modified during build with 2to3 tool, so we cannot
# build it for both Python versions in the same location.
local python; for python in python2 python3; do
cp -r "$builddir" "$builddir-$python" || return 1
cp -r "$builddir" "$builddir-$python"
done
}
build() {
local python; for python in python2 python3; do
cd "$builddir"-$python
$python setup.py build || return 1
$python setup.py build
done
}
......
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