# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iwlwifi-5150-ucode
pkgver=8.24.2.2
pkgrel=1
pkgdesc="Intel WiFi 5150AGN 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-5150-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="f9cee16e455e8046b1bf62c93f882d5d  iwlwifi-5150-ucode-8.24.2.2.tgz"
sha256sums="d253e6ff6624639aded67c82df98b2bc4a66eb66400848d5614921d513540cf9  iwlwifi-5150-ucode-8.24.2.2.tgz"
sha512sums="9b69823e2888a66bc1fb2917673e8122cf46ea9af3f10a4fbf653a5e55dc2efa6fd4719cdf6dcb1481ebff42c6244ce55c812bdfb62131485751440e6d6971a6  iwlwifi-5150-ucode-8.24.2.2.tgz"
