# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=wireless-regdb
pkgver=2017.12.23
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="4169ad538939350c70ff2af719e66e1ef3b3bb8ccb71802d0de1c29629ca4c90a6c31ea764207cca63ed928847b0f6c6c561e3b73d5c41b3207da0008e2dc49e  wireless-regdb-2017.12.23.tar.xz"
