summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec33bac8133632d26f4db3e110a519532ad50890 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Jörg Hansen <joerg DOT hansen AT posteo DOT de>
# Contributor: Florian Jacob <projects+arch AT florianjacob )DOT( de>
# Contributor: Jonas Heinrich <onny@project-insanity.org>

pkgname=python-fritzconnection-git
pkgver=1.9.1.r282.g1e200b1
pkgrel=1
pkgdesc='Python-Tool to communicate with the AVM Fritz!Box.'
license=('MIT')
arch=('any')
url='https://github.com/kbr/fritzconnection'
depends=(
  'python-requests'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
optdepends=(
  'python-segno: QR code support'
)
source=("git+https://github.com/kbr/fritzconnection.git")
sha512sums=('SKIP')

pkgver() {
  cd fritzconnection
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd fritzconnection
  python -m build --wheel --no-isolation
}

package() {
  cd fritzconnection
  python -m installer --destdir="$pkgdir" dist/*.whl
}