blob: b3bef4a8f46b4c5a13474bff479cd806c52de3ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $Id$
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=linux-firmware
# Commit date + git rev-parse --short origin/master
_rev=38e5405
pkgver=20141201.${_rev}
pkgrel=1
pkgdesc="Firmware files for Linux"
makedepends=('git')
arch=('any')
url="http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary"
license=('GPL2' 'GPL3' 'custom')
conflicts=('linux-firmware-git'
'kernel26-firmware'
'ar9170-fw'
'iwlwifi-1000-ucode'
'iwlwifi-3945-ucode'
'iwlwifi-4965-ucode'
'iwlwifi-5000-ucode'
'iwlwifi-5150-ucode'
'iwlwifi-6000-ucode'
'rt2870usb-fw'
'rt2x00-rt61-fw'
'rt2x00-rt71w-fw'
'amd-ucode')
replaces=('kernel26-firmware'
'ar9170-fw'
'iwlwifi-1000-ucode'
'iwlwifi-3945-ucode'
'iwlwifi-4965-ucode'
'iwlwifi-5000-ucode'
'iwlwifi-5150-ucode'
'iwlwifi-6000-ucode'
'rt2870usb-fw'
'rt2x00-rt61-fw'
'rt2x00-rt71w-fw'
'amd-ucode')
options=(!strip)
source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git#commit=${_rev}")
md5sums=('SKIP')
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" FIRMWAREDIR=/usr/lib/firmware install
rm "${pkgdir}/usr/lib/firmware/"{Makefile,README,configure,GPL-3}
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 LICEN* WHENCE "${pkgdir}/usr/share/licenses/linux-firmware/"
# Trigger a microcode reload for configurations not using early updates
install -d "${pkgdir}/usr/lib/tmpfiles.d"
echo 'w /sys/devices/system/cpu/microcode/reload - - - - 1' \
>"${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
}
# vim:set ts=2 sw=2 et:
|