2010-10-21 23:44:19 +02:00
|
|
|
# Template file for 'linux-firmware'
|
|
|
|
pkgname=linux-firmware
|
2011-08-31 12:28:13 +02:00
|
|
|
version="$(date +%Y%m%d)"
|
2010-10-21 23:44:19 +02:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="Binary firmware blobs for the Linux kernel"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-08 16:29:39 +02:00
|
|
|
homepage="http://www.kernel.org/"
|
|
|
|
license="See /usr/share/licenses/${pkgname}"
|
|
|
|
checksum=b8b0a3b875ff74d72a57987ad705753f94cc274c97922e0e16f51381af0d42a9
|
2010-10-21 23:44:19 +02:00
|
|
|
long_desc="
|
|
|
|
This package provides binary firmware blobs for misc hardware supported by
|
|
|
|
the Linux kernel."
|
|
|
|
|
|
|
|
noarch=yes
|
2011-08-31 12:28:13 +02:00
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
2010-10-21 23:44:19 +02:00
|
|
|
|
|
|
|
replaces="kernel-firmware>=0 radeon-firmware>=0 iwl1000-firmware>=0
|
|
|
|
iwl3945-firmware>=0 iwl4965-firmware>=0 iwl5000-firmware>=0 rt73usb-firmware>=0
|
2010-11-21 13:14:28 +01:00
|
|
|
iwl5150-firmware>=0 iwl6000-firmware>=0 rt2800usb>=0 rt61-firmware>=0
|
|
|
|
ar9170-firmware>=0"
|
2010-10-21 23:44:19 +02:00
|
|
|
|
2011-10-03 20:31:55 +02:00
|
|
|
Add_dependency build coreutils
|
2011-08-31 12:28:13 +02:00
|
|
|
Add_dependency build git
|
2010-10-21 23:44:19 +02:00
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_fetch() {
|
2011-10-19 03:14:06 +02:00
|
|
|
#url="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git"
|
|
|
|
url="git://github.com/mdamt/linux-firmware.git"
|
2011-08-31 12:28:13 +02:00
|
|
|
msg_normal " Fetching source from $url ...\n"
|
2011-10-14 19:24:20 +02:00
|
|
|
git clone ${url} ${pkgname}-${version}
|
2011-08-31 12:28:13 +02:00
|
|
|
}
|
2010-11-21 13:14:28 +01:00
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_install() {
|
2010-10-21 23:44:19 +02:00
|
|
|
install -d ${DESTDIR}/lib/firmware
|
|
|
|
install -d ${DESTDIR}/usr/share/licenses/${pkgname}
|
2010-11-21 13:14:28 +01:00
|
|
|
cp -a * ${DESTDIR}/lib/firmware
|
2011-03-03 21:28:44 +01:00
|
|
|
rm -f ${DESTDIR}/lib/firmware/GPL{,-3}
|
2010-10-21 23:44:19 +02:00
|
|
|
mv ${DESTDIR}/lib/firmware/{LICEN*,WHENCE} \
|
|
|
|
${DESTDIR}/usr/share/licenses/${pkgname}
|
2011-10-19 19:23:12 +02:00
|
|
|
${XBPS_FETCH_CMD} http://stellarbox.co.cc/linux_firmware/ar9170.fw
|
|
|
|
mv ar9170.fw ${DESTDIR}/lib/firmware
|
2010-11-21 13:14:28 +01:00
|
|
|
}
|