summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea0bd1f7ddc1b4a44b5264e0bf5e490554d703dd (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
35
# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com>

pkgname=python-bleak
_pkgname=bleak
pkgver=0.15.1
pkgrel=1
pkgdesc="Bluetooth Low Energy platform Agnostic Klient for Python"
arch=(any)
url='https://github.com/hbldh/bleak'
license=(MIT)
depends=('python' 'python-dbus-next' 'python-service-identity')
# checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-runner')
makedepends=('python-setuptools' 'bluez-utils')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/hbldh/$_pkgname/archive/v$pkgver.tar.gz")
sha512sums=('8b858b6a800c7725b60df5f14136e643e74a6c75504b16fae91ab75f77921877763a786fbe4cca6cf8bdd7722a839e387162b25036dd6d80b2250f6901464c3d')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

# check() {
	# cd $_pkgname-$pkgver

	# pytest
# }

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et: