summaryrefslogtreecommitdiff
blob: 0f8610691fc01c3d040c707fbbd9f24ceba99f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/ar9271-firmware/ar9271-firmware-1.3.ebuild,v 1.1 2011/10/23 12:25:02 slyfox Exp $

EAPI="3"

FIRMWARE_NAME="htc_9271.fw"

DESCRIPTION="Atheros firmware for AR9271 (ath9k_htc module)"
HOMEPAGE="http://linuxwireless.org/en/users/Drivers/ath9k_htc"
SRC_URI="http://linuxwireless.org/download/htc_fw/${PV}/${FIRMWARE_NAME} -> ${P}-${FIRMWARE_NAME}
	http://linuxwireless.org/download/htc_fw/${PV}/Changelog -> ${P}.Changelog"

LICENSE="as-is"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
RESTRICT="mirror binchecks strip"
SLOT="0"
DEPEND=""
RDEPEND=""

S="${WORKDIR}/${MY_P}"

src_unpack() { :; }

src_prepare() {
	cp "${DISTDIR}"/${P}-${FIRMWARE_NAME} "${WORKDIR}"/${FIRMWARE_NAME} || die
	cp "${DISTDIR}"/${P}.Changelog "${WORKDIR}"/Changelog || die
}

src_compile() { :; }

src_install() {
	insinto /lib/firmware
	doins "${FIRMWARE_NAME}" || die

	dodoc Changelog
}