summaryrefslogtreecommitdiffstats
path: root/abs/core/linux-firmware
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-01-14 20:09:11 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-01-14 20:09:11 (GMT)
commit5b70993a7b17a0c2fbeaa8da4141f38369ad2e04 (patch)
tree6069cd8d2738351b982e4ba7766eca035f73d3fe /abs/core/linux-firmware
parent6dd6c244aca6a96390d4bab8a11edf65ae7b2c93 (diff)
downloadlinhes_pkgbuild-5b70993a7b17a0c2fbeaa8da4141f38369ad2e04.zip
linhes_pkgbuild-5b70993a7b17a0c2fbeaa8da4141f38369ad2e04.tar.gz
linhes_pkgbuild-5b70993a7b17a0c2fbeaa8da4141f38369ad2e04.tar.bz2
linux-firmware: update to 20141201.38e5405
Diffstat (limited to 'abs/core/linux-firmware')
-rw-r--r--abs/core/linux-firmware/PKGBUILD28
1 files changed, 15 insertions, 13 deletions
diff --git a/abs/core/linux-firmware/PKGBUILD b/abs/core/linux-firmware/PKGBUILD
index db3610c..b3bef4a 100644
--- a/abs/core/linux-firmware/PKGBUILD
+++ b/abs/core/linux-firmware/PKGBUILD
@@ -2,7 +2,9 @@
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=linux-firmware
-pkgver=20130905
+# Commit date + git rev-parse --short origin/master
+_rev=38e5405
+pkgver=20141201.${_rev}
pkgrel=1
pkgdesc="Firmware files for Linux"
makedepends=('git')
@@ -35,21 +37,21 @@ replaces=('kernel26-firmware'
'rt2x00-rt71w-fw'
'amd-ucode')
options=(!strip)
-source=('git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git#branch=master')
+source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git#commit=${_rev}")
md5sums=('SKIP')
-pkgver() {
- date +%Y%m%d
-}
-
package() {
cd "${srcdir}/${pkgname}"
- # remove not needed Makefile #35236
- rm Makefile
- install -d -m755 "${pkgdir}/usr/lib/firmware"
- cp -a * "${pkgdir}/usr/lib/firmware/"
- install -d -m755 "${pkgdir}/usr/share/licenses/linux-firmware/"
- rm -f "${pkgdir}/usr/lib/firmware/"{README*,configure,GPL*}
- mv "${pkgdir}/usr/lib/firmware"/{LICEN*,WHENCE} "${pkgdir}/usr/share/licenses/linux-firmware/"
+
+ 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: