void-packages/srcpkgs/linux-firmware/template

41 lines
1.3 KiB
Plaintext
Raw Normal View History

# Template file for 'linux-firmware'
pkgname=linux-firmware
2011-01-19 16:27:55 +01:00
version=20110119
distfiles=http://xbps.nopcode.org/distfiles/$pkgname-$version.tar.xz
build_style=custom-install
short_desc="Binary firmware blobs for the Linux kernel"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-01-19 16:27:55 +01:00
checksum=b0451b45aa6ec7406905a1223046abaf2187402ba50271cce0c1cff583b286f0
long_desc="
This package provides binary firmware blobs for misc hardware supported by
the Linux kernel."
noarch=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 13:14:28 +01:00
iwl5150-firmware>=0 iwl6000-firmware>=0 rt2800usb>=0 rt61-firmware>=0
ar9170-firmware>=0"
Add_dependency build xz
do_install()
{
2011-01-19 16:27:55 +01:00
cd ${wrksrc}
2010-11-21 13:14:28 +01:00
install -d ${DESTDIR}/lib/firmware
install -d ${DESTDIR}/usr/share/licenses/${pkgname}
2010-11-21 13:14:28 +01:00
cp -a * ${DESTDIR}/lib/firmware
rm -f ${DESTDIR}/lib/firmware/GPL
mv ${DESTDIR}/lib/firmware/{LICEN*,WHENCE} \
${DESTDIR}/usr/share/licenses/${pkgname}
# Symlinks for Broadcom firmware
2010-11-21 13:14:28 +01:00
ln -s bcm43xx-0-610-809-0.fw \
${DESTDIR}/lib/firmware/brcm/bcm43xx-0.fw
2010-11-21 13:14:28 +01:00
ln -s bcm43xx_hdr-0-610-809-0.fw \
${DESTDIR}/lib/firmware/brcm/bcm43xx_hdr-0.fw
2010-11-21 13:14:28 +01:00
${XBPS_FETCH_CMD} http://www.kernel.org/pub/linux/kernel/people/mcgrof/firmware/ar9170/ar9170.fw
mv ar9170.fw ${DESTDIR}/lib/firmware
}