void-packages/srcpkgs/linux-firmware/template
2011-05-03 16:02:11 +02:00

34 lines
1.1 KiB
Text

# Template file for 'linux-firmware'
pkgname=linux-firmware
version=20110503
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>"
checksum=5a192b5c09985405e2dfa534d484aa1a4049b73ad97624097e7284282c4d91ff
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
ar9170-firmware>=0"
Add_dependency build xz
do_install()
{
cd ${wrksrc}
install -d ${DESTDIR}/lib/firmware
install -d ${DESTDIR}/usr/share/licenses/${pkgname}
cp -a * ${DESTDIR}/lib/firmware
rm -f ${DESTDIR}/lib/firmware/GPL{,-3}
mv ${DESTDIR}/lib/firmware/{LICEN*,WHENCE} \
${DESTDIR}/usr/share/licenses/${pkgname}
${XBPS_FETCH_CMD} http://www.kernel.org/pub/linux/kernel/people/mcgrof/firmware/ar9170/ar9170.fw
mv ar9170.fw ${DESTDIR}/lib/firmware
}