From a0caa1990bf77ff93df26e2bba7b9b4b7597dfa3 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Tue, 14 May 2013 12:48:35 +0200
Subject: [PATCH] iptraf-ng: cross build support.

---
 srcpkgs/iptraf-ng/template | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/iptraf-ng/template b/srcpkgs/iptraf-ng/template
index e5ec083af0b..564198eff36 100644
--- a/srcpkgs/iptraf-ng/template
+++ b/srcpkgs/iptraf-ng/template
@@ -1,7 +1,7 @@
 # Template file for 'iptraf-ng'
 pkgname=iptraf-ng
 version=1.1.1
-revision=1
+revision=2
 build_style=gnu-configure
 makedepends="ncurses-devel"
 short_desc="IP traffic monitor (iptraf-3.0.0 fork)"
@@ -29,9 +29,14 @@ long_desc="
  utilization of the built-in raw socket interface of the Linux kernel, so it
  can be used on a wide variety of supported network cards."
 
+if [ "$CROSS_BUILD" ]; then
+	# XXX needs ncurses-config
+	hostmakedepends="ncurses-devel>=5.9_7"
+fi
+
 iptraf-ng_package() {
 	make_dirs="/var/lock/iptraf-ng 0750 root root"
 	pkg_install() {
-		vmove usr
+		vmove all
 	}
 }