summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45c2bfe4e678c2961176586f3177ed7e279964be (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
# Maintainer: Hao Long <aur@esd.cc>

pkgname=vxwireguard-generator-git
pkgver=r16.779f0a5
pkgrel=1
pkgdesc='Utility to generate VXLAN over Wireguard mesh SD-WAN configuration'
arch=('any')
url='https://github.com/m13253/VxWireguard-Generator'
license=('MIT')
provides=('vwgen')
conflicts=('vwgen')
depends=('python-pynacl'
         'python-setuptools'
         'python-toml')
makedepends=('git')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

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

build() {
  cd $pkgname
  python setup.py build
}

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