# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=wireless-regdb
pkgver=2017.03.07
pkgrel=0
pkgdesc="Central Regulatory Domain Database"
url="https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb"
arch="noarch"
license="ISC"
subpackages="$pkgname-doc"
options="!check"
source="http://kernel.org/pub/software/network/wireless-regdb/$pkgname-$pkgver.tar.xz"

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

package() {
	cd "$builddir"
	install -D -m644 "$builddir"/regulatory.bin "$pkgdir"/usr/lib/crda/regulatory.bin
	install -D -m644 "$builddir"/regulatory.bin.5 "$pkgdir"/usr/share/man/man5/regulatory.bin.5
}

sha512sums="91e2458feb5bf4d4b7d9008afd9c2d40b700d53cb898855f6278b93a7779aefeed283bfff2dd77b89bcbcc98c5e131f5187730356e5bba858d96774d610ab450  wireless-regdb-2017.03.07.tar.xz"
