# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iwlwifi-1000-ucode
pkgver=39.31.5.1
pkgrel=0
pkgdesc="Intel WiFi Link 1000BGN 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-1000-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="8098503cb2abcdeffffb3ddd2d8d6f60  iwlwifi-1000-ucode-39.31.5.1.tgz"
sha256sums="ed0f1fbc2571c8da9a0cd9410fa8883494a9e1ac469d5000bc2c9dceaf83c970  iwlwifi-1000-ucode-39.31.5.1.tgz"
sha512sums="18f01b51f83e133bd6803567afb75606faba8cd96e3ed4faab8350d6f63e43c4c9397fdc17631efda1606fbef9e1a2b3065cbb58779de0f56223c95703474b06  iwlwifi-1000-ucode-39.31.5.1.tgz"
