2010-10-21 23:44:19 +02:00
|
|
|
# Template file for 'linux-firmware'
|
|
|
|
pkgname=linux-firmware
|
2011-10-21 10:12:42 +02:00
|
|
|
version="$(date -u +%Y%m%d)"
|
2012-07-09 20:29:25 +02:00
|
|
|
revision=1
|
2012-06-04 09:13:27 +02:00
|
|
|
noarch=yes
|
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
2012-05-23 18:26:56 +02:00
|
|
|
depends="linux-firmware-network>=20120523"
|
|
|
|
makedepends="wget git"
|
2012-06-04 09:13:27 +02:00
|
|
|
subpackages="${pkgname}-network"
|
2010-10-21 23:44:19 +02:00
|
|
|
short_desc="Binary firmware blobs for the Linux kernel"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-08 16:29:39 +02:00
|
|
|
homepage="http://www.kernel.org/"
|
|
|
|
license="See /usr/share/licenses/${pkgname}"
|
|
|
|
checksum=b8b0a3b875ff74d72a57987ad705753f94cc274c97922e0e16f51381af0d42a9
|
2010-10-21 23:44:19 +02:00
|
|
|
long_desc="
|
|
|
|
This package provides binary firmware blobs for misc hardware supported by
|
|
|
|
the Linux kernel."
|
|
|
|
|
|
|
|
replaces="kernel-firmware>=0 radeon-firmware>=0 iwl1000-firmware>=0
|
|
|
|
iwl3945-firmware>=0 iwl4965-firmware>=0 iwl5000-firmware>=0 rt73usb-firmware>=0
|
2010-11-21 13:14:28 +01:00
|
|
|
iwl5150-firmware>=0 iwl6000-firmware>=0 rt2800usb>=0 rt61-firmware>=0
|
|
|
|
ar9170-firmware>=0"
|
2010-10-21 23:44:19 +02:00
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_fetch() {
|
2012-06-04 09:13:27 +02:00
|
|
|
local url="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
|
2011-08-31 12:28:13 +02:00
|
|
|
msg_normal " Fetching source from $url ...\n"
|
2011-10-14 19:24:20 +02:00
|
|
|
git clone ${url} ${pkgname}-${version}
|
2011-08-31 12:28:13 +02:00
|
|
|
}
|
2010-11-21 13:14:28 +01:00
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_install() {
|
2012-07-09 20:29:25 +02:00
|
|
|
vmkdir usr/lib/firmware
|
2012-01-24 11:48:52 +01:00
|
|
|
vmkdir usr/share/licenses/${pkgname}
|
2012-07-09 20:29:25 +02:00
|
|
|
vcopy "*" usr/lib/firmware
|
|
|
|
rm -f ${DESTDIR}/usr/lib/firmware/GPL{,-3}
|
|
|
|
mv ${DESTDIR}/usr/lib/firmware/{LICEN*,WHENCE} \
|
2010-10-21 23:44:19 +02:00
|
|
|
${DESTDIR}/usr/share/licenses/${pkgname}
|
2012-01-30 14:26:20 +01:00
|
|
|
# XXX disabled for now, reenable when it works.
|
|
|
|
#wget http://anonscm.debian.org/viewvc/kernel/dists/squeeze/firmware-nonfree/atheros/ar9170.fw?view=co \
|
|
|
|
# -O ${DESTDIR}/lib/firmware/ar9170.fw
|
2010-11-21 13:14:28 +01:00
|
|
|
}
|