summaryrefslogtreecommitdiff
path: root/community/python-pybluez/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-pybluez/PKGBUILD')
-rw-r--r--community/python-pybluez/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/python-pybluez/PKGBUILD b/community/python-pybluez/PKGBUILD
new file mode 100644
index 000000000..1dc7b5535
--- /dev/null
+++ b/community/python-pybluez/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 66132 2012-02-23 01:40:38Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: cs-cam - me.at.camdaniel.com
+
+pkgbase=python-pybluez
+pkgname=(python-pybluez python2-pybluez)
+pkgver=0.20
+pkgrel=1
+pkgdesc="Python wrapper for the BlueZ Bluetooth stack"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/pybluez/"
+license=('GPL')
+makedepends=('python' 'python2' 'bluez-libs')
+source=(http://pybluez.googlecode.com/files/PyBluez-$pkgver.zip)
+md5sums=('1e7fad332d50f089bbce69070c877ef6')
+
+package_python-pybluez() {
+ depends=('python' 'bluez-libs')
+
+ cd $srcdir/PyBluez-$pkgver
+ python setup.py install --root=$pkgdir
+# ln -s bluetooth/_bluetooth.so $pkgdir/usr/lib/python3.3/site-packages/_bluetooth.so
+}
+
+package_python2-pybluez() {
+ depends=('python2' 'bluez-libs')
+
+ cd $srcdir/PyBluez-$pkgver
+ python2 setup.py install --root=$pkgdir
+# ln -s bluetooth/_bluetooth.so $pkgdir/usr/lib/python2.7/site-packages/_bluetooth.so
+}