git » linux-firmware.git » commit d1e95fd

20170217.12987ca-1

author Jan Alexander Steffens
2017-02-19 14:10:22 UTC
committer Jan Alexander Steffens
2017-02-19 14:10:22 UTC
parent 579ab1ddbe6229eda91634fc5437ec689974e4ea

20170217.12987ca-1

PKGBUILD +18 -4

diff --git a/PKGBUILD b/PKGBUILD
index f92eeb2..1c1b60a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,9 @@
 # Maintainer: Thomas Bächler <thomas@archlinux.org>
 
 pkgname=linux-firmware
-# Commit date + git rev-parse --short origin/master
-_rev=4b9559f
-pkgver=20161222.${_rev}
-pkgrel=2
+_rev=12987cadb37de28719990dfc2397ec6d09e10566
+pkgver=20170217.12987ca
+pkgrel=1
 pkgdesc="Firmware files for Linux"
 makedepends=('git')
 arch=('any')
@@ -39,6 +38,21 @@ options=(!strip)
 source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git#commit=${_rev}")
 md5sums=('SKIP')
 
+prepare() {
+  cd "${srcdir}/${pkgname}"
+
+  # Restore old Bluetooth firmware
+  # https://bugzilla.kernel.org/show_bug.cgi?id=190831
+  git checkout 9c71af939b51ce1431087acfb5b0f61c0b491c63 -- intel/ibt-11-5.{sfi,ddc}
+}
+
+pkgver() {
+  cd "${srcdir}/${pkgname}"
+
+  # Commit date + short rev
+  echo $(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD).$(git rev-parse --short HEAD)
+}
+
 package() {
   cd "${srcdir}/${pkgname}"