summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7db153f38b8a34dfb0f09452993533c1a8222a8b (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: Moonlit Tune <moonlit underscore tune at protonmail dot com>

pkgname=loramon
pkgver=0.9.7
pkgrel=3
pkgdesc="LoRa packet sniffer for RNode hardware"
arch=('any')
depends=('python-pyserial')
makedepends=('python-setuptools')
url="https://github.com/markqvist/loramon"
license=('MIT')
source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/${pkgname//-/_}-$pkgver.tar.gz)
source=($pkgname-$pkgver::$url/archive/refs/tags/$pkgver.tar.gz)
sha256sums=('8aefca898f28a24e9d9b225b0c4d94c5ca1e3e44b6a6882fe6c3b20c0d2fa387')

build() {
  cd "$srcdir/LoRaMon-$pkgver"

  python setup.py build
}

package() {
  cd "$srcdir/LoRaMon-$pkgver"

  python setup.py install --root="$pkgdir" --optimize=1
}