summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71ae31002a8f99edf0903295f888c132bd5863d0 (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
# Maintainer: Gabriel Rauter <rauter.gabriel@gmail.com>

pkgname=n-acd
pkgver=1
pkgrel=1
pkgdesc="IPv4 Address Conflict Detection"
url="https://github.com/nettools/n-acd"
license=('LGPL2.1' 'Apache')
arch=(x86_64)
depends=(glibc)
makedepends=(meson pkgconf)
_tag=v1 #20180929
source=("git+https://github.com/nettools/n-acd.git#tag=$_tag")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/^v//g; s/-/+/g'
}

build() {
  rm -rf build
  arch-meson $pkgname build
  ninja -C build
}

check() {
  meson test -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}