diff options
author | Patrick Lühne | 2017-11-18 22:19:30 +0100 |
---|---|---|
committer | Patrick Lühne | 2017-11-18 22:19:30 +0100 |
commit | 6f7404c01fca15d21b52d1c55d07273e385bfb69 (patch) | |
tree | 07cd3444be31267c2bd5e2f2893cf1892df4357d /PKGBUILD | |
download | aur-6f7404c01fca15d21b52d1c55d07273e385bfb69.tar.gz |
Initial commit of python-miio 0.3.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..402a5cff01e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Patrick Lühne <patrick-arch@luehne.de> + +pkgname=python-miio +pkgver=0.3.1 +pkgrel=1 +pkgdesc="Python library & console tool for controlling Xiaomi smart appliances" +url="https://github.com/rytilahti/python-miio" +arch=('any') +license=('custom') +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" + 'cryptodome-typing.patch') +sha512sums=('324ecc5fa3d049c3d59529755575ed1d179193631b28eb0999c28c62ead85c6cf1604d35c97a186bd3521bb05cc72fdf9352c6aa527ed064404a7a3c3183a7ba' + 'c3c402edba82a70a7a91d3250e4fed1ed4f1316ab7e785663994c8722107703461fda0ac55f33935d52be453498f3118d6d0c2bcfd4ee21415f867643a9c115c') + +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 -i ../../cryptodome-typing.patch +} + +build() { + cd ${pkgname}-${pkgver} + python setup.py build +} + +package() { + cd ${pkgname}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" +} |