# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iw
pkgver=4.9
pkgrel=0
pkgdesc="nl80211 based CLI configuration utility for wireless devices"
url="http://wireless.kernel.org/en/users/Documentation/iw"
arch="all"
license="GPL"
depends=""
makedepends="libnl3-dev linux-headers"
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/software/network/$pkgname/$pkgname-$pkgver.tar.xz"

builddir="$srcdir"/$pkgname-$pkgver

build () {
	cd "$builddir"
	make V=1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="3c99d8fc07d6d85b8304ff34b96573e22af65aea688a8cb08051ce4857d7ce9ac32a5acd3b30157c6c78e942f84a18f9229c17e353b7a6d01c80324729af18b3  iw-4.9.tar.xz"
