void-packages/srcpkgs/linux-firmware/template

55 lines
1.5 KiB
Text

# Template file for 'linux-firmware'
pkgname=linux-firmware
version=20121118
revision=1
short_desc="Binary firmware blobs for the Linux kernel"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.kernel.org/"
license="See /usr/share/licenses/${pkgname}"
distfiles="ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$version.tar.xz"
checksum=27f9a966c7e557dc072dc35ec01aff71d02e0389f25e19f04fdb8434accf4028
long_desc="
This package provides binary firmware blobs for misc hardware supported by
the Linux kernel."
do_install() {
vmkdir usr/lib/firmware
vmkdir usr/share/licenses/${pkgname}
vcopy "*" usr/lib/firmware
rm -f ${DESTDIR}/usr/lib/firmware/GPL{,-3}
mv ${DESTDIR}/usr/lib/firmware/{LICEN*,WHENCE} \
${DESTDIR}/usr/share/licenses/${pkgname}
}
linux-firmware-network_package() {
short_desc="${short_desc} for network modules"
noarch=yes
pkg_install() {
# 3Com
vmove usr/lib/firmware/3com
# Realtek
vmove usr/lib/firmware/RTL8192E
vmove "usr/lib/firmware/rt*"
# Atheros
vmove "usr/lib/firmware/ath*"
vmove "usr/lib/firmware/ar*"
# bnx2
vmove "usr/lib/firmware/bnx2*"
# Broadcom
vmove usr/lib/firmware/brcm
# Intel
vmove "usr/lib/firmware/i*"
}
}
linux-firmware_package() {
replaces="kernel-firmware>=0 radeon-firmware>=0 iwl1000-firmware>=0
iwl3945-firmware>=0 iwl4965-firmware>=0 iwl5000-firmware>=0
iwl5150-firmware>=0 iwl6000-firmware>=0 rt73usb-firmware>=0
rt2800usb>=0 rt61-firmware>=0 ar9170-firmware>=0"
depends="${pkgname}-network-${version}_${revision}"
noarch=yes
pkg_install() {
vmove usr
}
}