# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=crda
pkgver=3.18
pkgrel=0
pkgdesc="Linux Central Regulatory Domain Agent"
url="http://www.linuxwireless.org/en/developers/Regulatory/CRDA/"
arch="all"
license="GPL"
depends="wireless-regdb"
makedepends="linux-headers libnl-dev py2-m2crypto libgcrypt-dev python"
subpackages="$pkgname-dev $pkgname-doc"
source="http://kernel.org/pub/software/network/crda/crda-3.18.tar.xz
	01-Makefile-dont-run-ldconfig.patch"

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

prepare() {
	default_prepare || return 1
	sed 's/-Werror//' -i $builddir/Makefile || return 1
}

build() {
	cd "$builddir"
	make
}

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

md5sums="0431fef3067bf503dfb464069f06163a  crda-3.18.tar.xz
412cbf7cc897359b78f468f5b71fb9a3  01-Makefile-dont-run-ldconfig.patch"
sha256sums="43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf  crda-3.18.tar.xz
93d1c0ca0c1ef72ffc830033dbce8206695f721615b95b54b1a4afda1457bd7a  01-Makefile-dont-run-ldconfig.patch"
sha512sums="57ae6309159f396448f052c127f401c2f63d47f4193e87dca231c4b7bbbd7e69b5e5666f356fc76dfc8a6ae58ffa55c3794428d6eb34d9937df77c4276036588  crda-3.18.tar.xz
c642976b193722c0050c13331a010b466cea8391bb5f945832604a556e274ea1a4b289c78f74ff5d502fae800f18219db3d10ff10c0528eefc5e9443a963640f  01-Makefile-dont-run-ldconfig.patch"
