summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2021-08-13 15:46:21 -0500
committerLuis Martinez2021-08-13 15:46:21 -0500
commit1a8b6bc685120bd362e2142d3ae54473aa199912 (patch)
treef991a128052c361a79b30307c3210b647bac2d86
parent1259a0a407a0da00349a1b15f8d68018e5a15c8a (diff)
downloadaur-1a8b6bc685120bd362e2142d3ae54473aa199912.tar.gz
update to 0.5.7
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD25
-rw-r--r--miio.install6
3 files changed, 29 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0978b093cea..f7c784621de 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = python-miio
pkgdesc = Python library & console tool for controlling Xiaomi smart appliances
- pkgver = 0.5.6
- pkgrel = 2
+ pkgver = 0.5.7
+ pkgrel = 1
url = https://github.com/rytilahti/python-miio
+ install = miio.install
arch = any
license = GPL3
makedepends = python-dephell
@@ -19,7 +20,7 @@ pkgbase = python-miio
depends = python-yaml
depends = python-zeroconf
optdepends = python-android-backup-tools: Android backup extraction support
- source = https://files.pythonhosted.org/packages/source/p/python-miio/python-miio-0.5.6.tar.gz
- sha512sums = c1f94d0129cf1992dbf4d27ab0bae56c0bccb9be62ae51593f3a49dc7bd90209839188f498dad97778b3c0321506b372c3e9af2f5ec72db01b867cfe2de4848e
+ source = https://files.pythonhosted.org/packages/source/p/python-miio/python-miio-0.5.7.tar.gz
+ sha512sums = d44f48875c72fc85f99859293528c140b9ded80c39c53d4181f499159e75fc95d6625a51d43c1fb1c32f29787346d5e8cc7c12d35103177aaefbcee0aebe5f43
pkgname = python-miio
diff --git a/PKGBUILD b/PKGBUILD
index f5ca4e67f80..581d69e3288 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,31 @@
-# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
+# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Patrick L├╝hne <patrick-arch@luehne.de>
pkgname=python-miio
-pkgver=0.5.6
-pkgrel=2
+pkgver=0.5.7
+pkgrel=1
pkgdesc="Python library & console tool for controlling Xiaomi smart appliances"
url="https://github.com/rytilahti/python-miio"
arch=('any')
license=('GPL3')
-depends=('python>=3.6' 'python-appdirs' 'python-attrs' 'python-click>=7'
- 'python-construct' 'python-croniter' 'python-cryptography'
- 'python-netifaces' 'python-pytz' 'python-tqdm' 'python-yaml' 'python-zeroconf')
+depends=(
+ 'python>=3.6'
+ 'python-appdirs'
+ 'python-attrs'
+ 'python-click>=7'
+ 'python-construct'
+ 'python-croniter'
+ 'python-cryptography'
+ 'python-netifaces'
+ 'python-pytz'
+ 'python-tqdm'
+ 'python-yaml'
+ 'python-zeroconf')
optdepends=('python-android-backup-tools: Android backup extraction support')
makedepends=('python-dephell')
+install=miio.install
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
-sha512sums=('c1f94d0129cf1992dbf4d27ab0bae56c0bccb9be62ae51593f3a49dc7bd90209839188f498dad97778b3c0321506b372c3e9af2f5ec72db01b867cfe2de4848e')
+sha512sums=('d44f48875c72fc85f99859293528c140b9ded80c39c53d4181f499159e75fc95d6625a51d43c1fb1c32f29787346d5e8cc7c12d35103177aaefbcee0aebe5f43')
prepare() {
cd "$pkgname-$pkgver"
diff --git a/miio.install b/miio.install
new file mode 100644
index 00000000000..b3c7c156e0d
--- /dev/null
+++ b/miio.install
@@ -0,0 +1,6 @@
+post_upgrade() {
+ if [ "${1%-*}" != "${2%-*}" ]; then
+ echo ':: Please check upstream documentation for any breaking changes.'
+ echo ":: You can find them here: https://github.com/rytilahti/python-miio/releases/tag/${1%-*}"
+ fi
+}