75 lines
2.2 KiB
Bash
75 lines
2.2 KiB
Bash
# Template file for 'linux-firmware'
|
|
pkgname=linux-firmware
|
|
version=20200122
|
|
revision=1
|
|
archs=noarch
|
|
depends="${pkgname}-amd-${version}_${revision} ${pkgname}-network-${version}_${revision}"
|
|
short_desc="Binary firmware blobs for the Linux kernel"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="See /usr/share/licenses/${pkgname}"
|
|
homepage="https://www.kernel.org/"
|
|
distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/${pkgname}-${version}.tar.gz"
|
|
checksum=fac1b252dc7c65fa20f70b6f854284df6f562d2200ab6246effe9d7021fad396
|
|
|
|
do_install() {
|
|
vmkdir usr/lib/firmware
|
|
vmkdir usr/share/licenses/${pkgname}
|
|
vcopy "*" usr/lib/firmware
|
|
rm -f ${DESTDIR}/usr/lib/firmware/{README*,configure,GPL*}
|
|
mv ${DESTDIR}/usr/lib/firmware/{LICEN*,WHENCE} \
|
|
${DESTDIR}/usr/share/licenses/${pkgname}
|
|
}
|
|
|
|
linux-firmware-amd_package() {
|
|
short_desc+=" - AMD CPU/GPU microcode"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/lib/firmware/amd*
|
|
vmove usr/lib/firmware/radeon
|
|
vmove usr/share/licenses/linux-firmware/LICENSE.amdgpu
|
|
vmove usr/share/licenses/linux-firmware/LICENSE.amd-ucode
|
|
vmove usr/share/licenses/linux-firmware/LICENSE.radeon
|
|
}
|
|
}
|
|
|
|
linux-firmware-intel_package() {
|
|
short_desc+=" - Intel CPU/GPU microcode"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/lib/firmware/i915
|
|
vmove usr/share/licenses/linux-firmware/LICENSE.i915
|
|
}
|
|
}
|
|
|
|
linux-firmware-nvidia_package() {
|
|
short_desc+=" NVIDIA GPU microcode"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/lib/firmware/nvidia
|
|
vmove usr/share/licenses/linux-firmware/LICENCE.nvidia*
|
|
}
|
|
}
|
|
|
|
linux-firmware-network_package() {
|
|
short_desc+=" - network"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/lib/firmware/3com
|
|
vmove usr/lib/firmware/RTL8192E
|
|
vmove "usr/lib/firmware/rt*"
|
|
vmove "usr/lib/firmware/ath*"
|
|
vmove "usr/lib/firmware/ar*"
|
|
vmove "usr/lib/firmware/bnx2*"
|
|
vmove usr/lib/firmware/brcm
|
|
vmove "usr/lib/firmware/cxgb*"
|
|
vmove "usr/lib/firmware/htc*"
|
|
vmove "usr/lib/firmware/iwl*"
|
|
vmove "usr/lib/firmware/intel*"
|
|
vmove usr/lib/firmware/kaweth
|
|
vmove usr/lib/firmware/libertas
|
|
vmove usr/lib/firmware/mrvl
|
|
vmove usr/lib/firmware/ueagle-atm
|
|
vmove usr/lib/firmware/ti-connectivity
|
|
vmove usr/lib/firmware/dpaa2
|
|
}
|
|
}
|