mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-17 04:23:50 +02:00
linux-firmware: use included Makefile.
Manually copying the files is error prone, leading to a lot of missing symlinks (defined in the WHENCE file) as well as unnecessary content, such as source code and some helper scripts. This commit fixes that. Fixes #27682
This commit is contained in:
parent
3b48183232
commit
cb257fed2e
1 changed files with 9 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'linux-firmware'
|
# Template file for 'linux-firmware'
|
||||||
pkgname=linux-firmware
|
pkgname=linux-firmware
|
||||||
version=20201218
|
version=20201218
|
||||||
revision=1
|
revision=2
|
||||||
depends="${pkgname}-amd>=${version}_${revision} ${pkgname}-network>=${version}_${revision}"
|
depends="${pkgname}-amd>=${version}_${revision} ${pkgname}-network>=${version}_${revision}"
|
||||||
short_desc="Binary firmware blobs for the Linux kernel"
|
short_desc="Binary firmware blobs for the Linux kernel"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
@ -16,12 +16,14 @@ subpackages="linux-firmware-amd linux-firmware-broadcom
|
||||||
linux-firmware-intel linux-firmware-nvidia linux-firmware-network"
|
linux-firmware-intel linux-firmware-nvidia linux-firmware-network"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir usr/lib/firmware
|
make install FIRMWAREDIR=/usr/lib/firmware DESTDIR=$DESTDIR
|
||||||
vmkdir usr/share/licenses/${pkgname}
|
|
||||||
vcopy "*" usr/lib/firmware
|
for _l in LICEN* WHENCE
|
||||||
rm -f ${DESTDIR}/usr/lib/firmware/{README*,configure,GPL*}
|
do
|
||||||
mv ${DESTDIR}/usr/lib/firmware/{LICEN*,WHENCE} \
|
vlicense "$_l"
|
||||||
${DESTDIR}/usr/share/licenses/${pkgname}
|
done
|
||||||
|
|
||||||
|
# XXX: should some firmwares, like carl9170, be pruned?
|
||||||
}
|
}
|
||||||
|
|
||||||
linux-firmware-amd_package() {
|
linux-firmware-amd_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue