summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD32
2 files changed, 35 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 252b7612920..4c109c7ed22 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,27 +1,33 @@
pkgbase = python-miio
pkgdesc = Python library & console tool for controlling Xiaomi smart appliances
- pkgver = 0.5.8
+ pkgver = 0.5.9
pkgrel = 1
url = https://github.com/rytilahti/python-miio
install = miio.install
arch = any
license = GPL3
makedepends = python-dephell
+ makedepends = python-setuptools
+ makedepends = python-pytest
+ makedepends = python-sphinx
+ makedepends = python-sphinx-click
+ makedepends = python-sphinx_rtd_theme
+ makedepends = python-sphinxcontrib-apidoc
depends = python>=3.6
- depends = python-appdirs>=1
+ depends = python-appdirs
depends = python-attrs
- depends = python-click>=7
- depends = python-construct>=2.10.56
+ depends = python-click
+ depends = python-construct
depends = python-croniter
- depends = python-cryptography>=3
+ depends = python-cryptography
depends = python-defusedxml
depends = python-netifaces
depends = python-pytz
- depends = python-tqdm>=4
+ depends = python-tqdm
depends = python-yaml
depends = python-zeroconf
optdepends = python-android-backup-tools: Android backup extraction support
- source = python-miio-0.5.8.tar.gz::https://files.pythonhosted.org/packages/source/p/python-miio/python-miio-0.5.8.tar.gz
- sha512sums = c2dec86e952e8fd2ea1bbd2db43b2b009e06cc58cfc9611c5655c23105655f12a5e95ae02a018b48531a2d93465bcaf369d48c61e3d8325cfa0982259a2bd79b
+ source = python-miio-0.5.9.tar.gz::https://github.com/rytilahti/python-miio/archive/0.5.9.tar.gz
+ sha512sums = d5b67e7cfb4781b1e55e4d931bd5c88b53ddd072494b5c25ab3bcd2339b89ad75f7195f4c2baa83f34fcefd19ab8f097f102d46428413922c3853c57e9945b05
pkgname = python-miio
diff --git a/PKGBUILD b/PKGBUILD
index 59451d428f3..3ba8d38feb4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Patrick L├╝hne <patrick-arch@luehne.de>
pkgname=python-miio
-pkgver=0.5.8
+pkgver=0.5.9
pkgrel=1
pkgdesc="Python library & console tool for controlling Xiaomi smart appliances"
url="https://github.com/rytilahti/python-miio"
@@ -10,23 +10,30 @@ arch=('any')
license=('GPL3')
depends=(
'python>=3.6'
- 'python-appdirs>=1'
+ 'python-appdirs'
'python-attrs'
- 'python-click>=7'
- 'python-construct>=2.10.56'
+ 'python-click'
+ 'python-construct'
'python-croniter'
- 'python-cryptography>=3'
+ 'python-cryptography'
'python-defusedxml'
'python-netifaces'
'python-pytz'
- 'python-tqdm>=4'
+ 'python-tqdm'
'python-yaml'
'python-zeroconf')
optdepends=('python-android-backup-tools: Android backup extraction support')
-makedepends=('python-dephell')
+makedepends=(
+ 'python-dephell'
+ 'python-setuptools'
+ 'python-pytest'
+ 'python-sphinx'
+ 'python-sphinx-click'
+ 'python-sphinx_rtd_theme'
+ 'python-sphinxcontrib-apidoc')
install=miio.install
-source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
-sha512sums=('c2dec86e952e8fd2ea1bbd2db43b2b009e06cc58cfc9611c5655c23105655f12a5e95ae02a018b48531a2d93465bcaf369d48c61e3d8325cfa0982259a2bd79b')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('d5b67e7cfb4781b1e55e4d931bd5c88b53ddd072494b5c25ab3bcd2339b89ad75f7195f4c2baa83f34fcefd19ab8f097f102d46428413922c3853c57e9945b05')
prepare() {
cd "$pkgname-$pkgver"
@@ -36,10 +43,13 @@ prepare() {
build() {
cd "$pkgname-$pkgver"
python setup.py build
+ cd docs
+ PYTHONPATH=../ make man
}
package() {
cd "$pkgname-$pkgver"
- python setup.py install --prefix=/usr --optimize=1 --root="${pkgdir}" --skip-build
- install -D -m644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ PYTHONHASHSEED=0 python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
+ install -Dm644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm644 "docs/_build/man/$pkgname.1" -t "$pkgdir/usr/share/man/man1/"
}