summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-pybluez/PKGBUILD
blob: 99594e69273c28ea2ace789a6d1062c74f11f4f2 (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
# $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.22
pkgrel=2
pkgdesc="Python wrapper for the BlueZ Bluetooth stack"
arch=('x86_64')
url="http://karulis.github.io/pybluez/"
license=('GPL')
makedepends=('python-setuptools' 'python2-setuptools' 'bluez-libs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/karulis/pybluez/archive/$pkgver.tar.gz")
md5sums=('06f71ca6d4216ace671d5e588ec85887')

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
}