summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7cbfe1d81888a18c2d5295de07ced2853129e16f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Flaviu Tamas <me@flaviutamas.com>

pkgbase='tdmgr'
pkgname=('tdmgr')
_module='tdm'
pkgver='0.2.13'
pkgrel=1
pkgdesc="Tasmota Device Manager is able to find, monitor and do magic things. The easy way. Like a Superhero."
url="https://github.com/jziolkowski/tdm"
depends=('python' 'python-paho-mqtt' 'python-pyqt5')
makedepends=('python-setuptools')
license=('GPL')
arch=('any')
source=("$url/archive/refs/tags/v$pkgver.zip")
sha256sums=('67c3916943cd83cb3ef41c8eca1a75d47e3c6f768c566c39c2baa31447d1afab')

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    touch CHANGELOG.md # work around https://github.com/jziolkowski/tdm/pull/160
    python setup.py build
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
    mv "${pkgdir}/usr/bin/tdmgr.py" "${pkgdir}/usr/bin/tdmgr"
}