void-packages/srcpkgs/linux-firmware/template

46 lines
1.4 KiB
Text
Raw Normal View History

# Template file for 'linux-firmware'
pkgname=linux-firmware
version="$(date -u +%Y%m%d)"
short_desc="Binary firmware blobs for the Linux kernel"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-06-08 14:29:39 +00:00
homepage="http://www.kernel.org/"
license="See /usr/share/licenses/${pkgname}"
checksum=b8b0a3b875ff74d72a57987ad705753f94cc274c97922e0e16f51381af0d42a9
long_desc="
This package provides binary firmware blobs for misc hardware supported by
the Linux kernel."
noarch=yes
nofetch=yes
noextract=yes
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 12:14:28 +00:00
iwl5150-firmware>=0 iwl6000-firmware>=0 rt2800usb>=0 rt61-firmware>=0
ar9170-firmware>=0"
subpackages="${pkgname}-network"
Add_dependency run ${pkgname}-network ">=${version}"
Add_dependency build wget
Add_dependency build git
do_fetch() {
url="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git"
msg_normal " Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
2010-11-21 12:14:28 +00:00
do_install() {
2012-01-24 10:48:52 +00:00
vmkdir lib/firmware
vmkdir usr/share/licenses/${pkgname}
vcopy "*" lib/firmware
rm -f ${DESTDIR}/lib/firmware/GPL{,-3}
mv ${DESTDIR}/lib/firmware/{LICEN*,WHENCE} \
${DESTDIR}/usr/share/licenses/${pkgname}
# 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 12:14:28 +00:00
}