summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a55ba3ade971ee5a30d364abfafdc621d3c69dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Patrick L├╝hne <patrick-arch@luehne.de>

pkgname=python-miio
pkgver=0.3.2
pkgrel=2
pkgdesc="Python library & console tool for controlling Xiaomi smart appliances"
url="https://github.com/rytilahti/python-miio"
arch=('any')
license=('GPL3')
depends=('python>=3.4' 'python-android-backup-tools' 'python-attrs' 'python-click' 'python-construct' 'python-cryptography' 'python-pycryptodomex' 'python-pretty-cron' 'python-pytz' 'python-zeroconf')
source=("https://github.com/rytilahti/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('9c84b6b431c3e0a6a8873fd1fe00d04604dfbb870fc25044a07dff5cfa1e2c32dcfc66ce18e8a1537173271d4985ea5f01037f3ccc7c9d7259bceda037472a95')

build() {
	cd ${pkgname}-${pkgver}
	python setup.py build
}

package() {
	cd ${pkgname}-${pkgver}
	python setup.py install --prefix=/usr --root="${pkgdir}"
	install -D -m644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
}