# Maintainer: Developer <dev@opalos.org>
# Maintainer: Developer <dev@opalos.org>

pkgname=iw
pkgver=%version%
pkgrel=%release%
pkgdesc='nl80211 based CLI configuration utility for wireless devices'
arch=('x86_64')
url='https://wireless.wiki.kernel.org/en/users/documentation/iw'
license=('GPL')
depends=('libnl')
makedepends=('linux-api-headers')
validpgpkeys=('C0EBC440F6DA091C884D8532E0F373F37BF9099A') # Johannes Berg
source=("https://www.kernel.org/pub/software/network/$pkgname/$pkgname-$pkgver.tar."{xz,sign})
sha256sums=('aacf49c266b29d500d73086798a1c652e760c19126a8599fd811850430789a35'
            'SKIP')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" SBINDIR="/usr/bin" install
}
