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