# Maintainer of this PKGBUILD file: Martino Pilia _pkgname=pytradfri pkgname=python-$_pkgname pkgver=7.0.5 pkgrel=1 pkgdesc="Python class to communicate with the IKEA Trådfri Gateway" arch=('any') url="https://github.com/home-assistant-libs/pytradfri" license=('MIT') depends=('libcoap-dtls-git') optdepends=( 'python-aiocoap: for asynchronous applications' 'python-dtlssocket: for asynchronous applications' ) makedepends=('python-setuptools') source=("https://github.com/ggravlingen/pytradfri/archive/${pkgver}.tar.gz") sha256sums=('fefc3a76b2b186073f1ae346e3f3368a3f337167a65ddbb5b6346fa37c1c0139') package() { cd "$srcdir/$_pkgname-$pkgver" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" python setup.py install --optimize=1 --root="$pkgdir" }