void-packages/srcpkgs/linux-firmware/template

35 lines
1.2 KiB
Plaintext
Raw Normal View History

# Template file for 'linux-firmware'
pkgname=linux-firmware
version=20100911
distfiles="ftp://ftp.archlinux.org/other/linux-firmware/$pkgname-$version.tar.xz"
build_style=custom-install
short_desc="Binary firmware blobs for the Linux kernel"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=c5c7a3a516985d564cc9756cb45390ee60f18a844a0543e3e421c5d6ee0a62aa
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
iwl5150-firmware>=0 iwl6000-firmware>=0 rt2800usb>=0 rt61-firmware>=0"
Add_dependency build xz
do_install()
{
install -d ${DESTDIR}/lib/firmware
install -d ${DESTDIR}/usr/share/licenses/${pkgname}
cp -a ${wrksrc}/* ${DESTDIR}/lib/firmware
rm -f ${DESTDIR}/lib/firmware/GPL
mv ${DESTDIR}/lib/firmware/{LICEN*,WHENCE} \
${DESTDIR}/usr/share/licenses/${pkgname}
# Symlinks for Broadcom firmware
ln -s ${wrksrc}/bcm43xx-0-610-809-0.fw \
${DESTDIR}/lib/firmware/brcm/bcm43xx-0.fw
ln -s ${wrksrc}/bcm43xx_hdr-0-610-809-0.fw \
${DESTDIR}/lib/firmware/brcm/bcm43xx_hdr-0.fw
}