summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2021-06-08 09:50:44 -0500
committerLuis Martinez2021-06-08 09:51:30 -0500
commit39a5ddcb8ae3f0a14635568b6d8147a68c749f86 (patch)
treef290b4be45de1b4dc41290b08b86b4ab4b30ae06
parent3a4bc381583ded19bfbecc3b6523571740618df9 (diff)
downloadaur-39a5ddcb8ae3f0a14635568b6d8147a68c749f86.tar.gz
undo revert from 0.5.6, fixed with dephell
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD21
2 files changed, 18 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fa962edb259..3ca4175c007 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
pkgbase = python-miio
pkgdesc = Python library & console tool for controlling Xiaomi smart appliances
- pkgver = 0.5.0.1
+ pkgver = 0.5.6
pkgrel = 1
url = https://github.com/rytilahti/python-miio
arch = any
license = GPL3
+ makedepends = python-dephell
depends = python>=3.6
depends = python-appdirs
depends = python-attrs
@@ -16,8 +17,7 @@ pkgbase = python-miio
depends = python-tqdm
depends = python-zeroconf
optdepends = python-android-backup-tools: Android backup extraction support
- source = https://github.com/rytilahti/python-miio/archive/0.5.0.1.tar.gz
- sha512sums = d82c4d52c7590892f7322d2d1a428a8dcb4843085a42374458bdfeeeacfc73a0f159d1a3bcc0612a5740d61dca472bbb022f912d20cf07ba2e1f9df6fdc52b20
+ source = https://files.pythonhosted.org/packages/source/p/python-miio/python-miio-0.5.6.tar.gz
+ sha512sums = c1f94d0129cf1992dbf4d27ab0bae56c0bccb9be62ae51593f3a49dc7bd90209839188f498dad97778b3c0321506b372c3e9af2f5ec72db01b867cfe2de4848e
pkgname = python-miio
-
diff --git a/PKGBUILD b/PKGBUILD
index 3f8f9354a71..4ab49af280d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
-# Maintainer: Patrick Lühne <patrick-arch@luehne.de>
+# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
+# Contributor: Patrick Lühne <patrick-arch@luehne.de>
pkgname=python-miio
-pkgver=0.5.0.1
+pkgver=0.5.6
pkgrel=1
pkgdesc="Python library & console tool for controlling Xiaomi smart appliances"
url="https://github.com/rytilahti/python-miio"
@@ -9,16 +10,22 @@ arch=('any')
license=('GPL3')
depends=('python>=3.6' 'python-appdirs' 'python-attrs' 'python-click>=7' 'python-construct' 'python-cryptography' 'python-netifaces' 'python-pytz' 'python-tqdm' 'python-zeroconf')
optdepends=('python-android-backup-tools: Android backup extraction support')
-source=("https://github.com/rytilahti/${pkgname}/archive/${pkgver}.tar.gz")
-sha512sums=('d82c4d52c7590892f7322d2d1a428a8dcb4843085a42374458bdfeeeacfc73a0f159d1a3bcc0612a5740d61dca472bbb022f912d20cf07ba2e1f9df6fdc52b20')
+makedepends=('python-dephell')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
+sha512sums=('c1f94d0129cf1992dbf4d27ab0bae56c0bccb9be62ae51593f3a49dc7bd90209839188f498dad97778b3c0321506b372c3e9af2f5ec72db01b867cfe2de4848e')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ dephell deps convert --from pyproject.toml --to setup.py
+}
build() {
- cd ${pkgname}-${pkgver}
+ cd "$pkgname-$pkgver"
python setup.py build
}
package() {
- cd ${pkgname}-${pkgver}
- python setup.py install --prefix=/usr --root="${pkgdir}"
+ 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}"
}