summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 615fa75ce19c1fcaf890e0dd247d7ad6f956a2b8 (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
# Maintainer: Pranav Jerry <libreinator at disroot dot org>
_basename=pybatmesh
pkgname="$_basename-git"
pkgver=0.5.3.r0.g0c6bdea
pkgrel=1
pkgdesc="Python script to create a batman-adv mesh network (development version)"
arch=("any")
url="https://git.disroot.org/pranav/$_basename"
license=("GPL3")
depends=("iwd" "python-dasbus" "systemd>=248" "python-systemd")
optdepends=("batctl: for debugging")
makedepends=('git' 'python-setuptools')
replaces=(naxalnet-git)
provides=($_basename)
conflicts=(naxalnet naxalnet-git $_basename)
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/$_basename"
	git describe --long --tags|sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
	#./setup.py --version
}

build() {
	cd "${srcdir}/$_basename"
	make
	return $?
}

package() {
	cd "$srcdir/$_basename"
	make DESTDIR="$pkgdir" install
	return $?
}