summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f3203b2927ad3997cb747fc6d1ad722211dd67c (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
# Maintainer: Michael Lass <bevan@bi-co.net>

# This PKGBUILD is maintained on github:
# https://github.com/michaellass/AUR

pkgname=meshwatch-git
_name=meshwatch
pkgver=r96.35f4723
pkgrel=1
pkgdesc="Communicate with Meshtastic devices using python."
arch=('any')
url="https://github.com/datagod/meshwatch"
license=('BSD')
depends=('meshtastic-python')
conflicts=('meshwatch')
provides=('meshwatch')
source=("git+https://github.com/datagod/meshwatch.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_name"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$_name"

    install -Dm755 meshwatch.py "$pkgdir"/usr/bin/meshwatch
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}