summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78da77f8352978c25bb8e12e4c903f0cfca8db6f (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
# Maintainer: Maxr1998 <aur@maxr1998.de>

_name=netdisco
pkgname=python-netdisco
pkgver=3.0.0
pkgrel=1
pkgdesc='Library for Python that discovers devices on your local network [deprecated]'
arch=('any')
url=https://github.com/home-assistant-libs/netdisco
license=('Apache')
depends=('python' 'python-zeroconf' 'python-requests' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/n/netdisco/$_name-$pkgver.tar.gz")
sha256sums=("4dbb590482f377ccc461e01742707ccbe8f1d2d1b28578af91dc9b7febcdcbd2")

build() {
  cd $_name-$pkgver
  python setup.py build
}

package() {
  cd $_name-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et: