summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Herrmann2016-12-07 18:45:45 +0100
committerDavid Herrmann2016-12-07 18:45:45 +0100
commit56a590e6e32d4aa3b58671b6683f05e79cc3e7d5 (patch)
tree69289ae52e3730ed1e85a41430370f6707a763ea
parenteeea6afa13bf1f8f1b61138ae791c27c423317c9 (diff)
downloadaur-56a590e6e32d4aa3b58671b6683f05e79cc3e7d5.tar.gz
n-acd-git: use meson
Switch to meson as build system. Upstream made meson mandatory now. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
-rw-r--r--PKGBUILD19
1 files changed, 9 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2582aab1b71..4a828f0f326 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgorg=nettools
_pkgname=n-acd
pkgdesc="IPv4 Address Conflict Detection"
-pkgver=r40.a55f547
+pkgver=r49.1480c42
pkgrel=1
pkgname=$_pkgname-git
@@ -11,8 +11,7 @@ arch=('i686' 'x86_64')
url="https://github.com/$_pkgorg/$_pkgname"
license=('Apache')
depends=('glibc')
-makedepends=('git')
-options=('debug' '!strip')
+makedepends=('git' 'meson')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::git+https://github.com/$_pkgorg/$_pkgname")
@@ -25,17 +24,17 @@ pkgver() {
}
build() {
- cd "$pkgname"
- ./autogen.sh c
- make
+ rm -Rf "build"
+ meson --prefix=/usr --buildtype=release "$pkgname" "build"
+ ninja -C "build"
}
check() {
- cd "$pkgname"
- make check
+ # XXX: Skipping tests is only supported with meson-0.37
+ # ninja -v -C "build" test
+ :
}
package() {
- cd "$pkgname"
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" ninja -v -C "build" install
}