summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5df9659d41b2c8adfb0a36e887c80fcc86a43d9 (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
32
33
34
# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
# Contributor: Tobias Simetsreiter <tobias@tsimnet.eu>

pkgname=python-pybluez-git
_gitname=pybluez
pkgver=0.22.r242.g4d46ce1
pkgrel=1
pkgdesc='Python wrapper for the BlueZ Bluetooth stack'
arch=('any')
url='https://github.com/pybluez/pybluez'
license=('GPL')
depends=('python' 'bluez-libs')
makedepends=('boost' 'git' 'python-setuptools')
provides=('python-pybluez')
conflicts=('python-pybluez')
source=('git+https://github.com/pybluez/pybluez.git'
        'git+https://github.com/oscaracena/pygattlib.git')
sha256sums=('SKIP'
            'SKIP')

pkgver() {
  cd "${_gitname}"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd pygattlib
  sed 's/boost_python-py34/boost_python3/g' setup.py > new_setup.py
  mv new_setup.py setup.py
  python setup.py install --root="$pkgdir"
  cd "$srcdir/${_gitname}"
  python setup.py install --root="$pkgdir"
#  ln -s bluetooth/_bluetooth.so $pkgdir/usr/lib/python3.3/site-packages/_bluetooth.so
}