# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iwlwifi-6000-ucode
pkgver=9.221.4.1
pkgrel=0
pkgdesc="Intel 6000 Series Wi-Fi Adapters Microcode"
url="http://intellinuxwireless.org/?p=iwlwifi"
arch="all"
license="custom"
depends=
makedepends=
install=
subpackages="$pkgname-doc"
source="https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-6000-ucode-$pkgver.tgz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	return 0
}

package() {
	cd "$_builddir"
	install -d "$pkgdir"/lib/firmware \
		"$pkgdir"/usr/share/doc/$pkgname \
		"$pkgdir"/usr/share/licenses/$pkgname
	install iwlwifi-*.ucode "$pkgdir"/lib/firmware/
	install -m644 README.* "$pkgdir"/usr/share/doc/$pkgname/
	install -m644 LICENSE.* "$pkgdir"/usr/share/licenses/$pkgname/
}

md5sums="c132a4c1946a9dbc0c36b41696e5c793  iwlwifi-6000-ucode-9.221.4.1.tgz"
sha256sums="7f04623231663dc4ee63df32fd890bfa9514dce1fab9dc7a25fda90350da836b  iwlwifi-6000-ucode-9.221.4.1.tgz"
sha512sums="18b0638e0d715444ddc5045e881e37081d6ba51baa23451d478343a20d44ff7b8ded0065aa2a3c566fd3325ee3ffc4cef48fd12263e230b2057bd034a97975d8  iwlwifi-6000-ucode-9.221.4.1.tgz"
