From e5d38ff31341df7620b85f203a2747bc7375c03a Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sun, 4 Nov 2018 17:00:19 +0000 Subject: [PATCH] Add rtl8723bs-firmware package --- PKGBUILDS/rtl8723bt-firmware/PKGBUILD | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 PKGBUILDS/rtl8723bt-firmware/PKGBUILD diff --git a/PKGBUILDS/rtl8723bt-firmware/PKGBUILD b/PKGBUILDS/rtl8723bt-firmware/PKGBUILD new file mode 100644 index 00000000..391a2f10 --- /dev/null +++ b/PKGBUILDS/rtl8723bt-firmware/PKGBUILD @@ -0,0 +1,33 @@ +pkgname=rtl8723bt-firmware +pkgrel=1 +pkgdesc="Firmware files for RTL8723BS and RTL8723CS" +makedepends=('git') +arch=('any') +url="https://github.com/anarsoul/rtl8723bt-firmware" +license=('custom') +pkgver=20181104.39da595 +options=(!strip) +source=("$pkgname::git+https://github.com/anarsoul/rtl8723bt-firmware.git") +md5sums=('SKIP') + +pkgver() { + # Mimics ABS pkgver described like this: + # Commit date + git rev-parse --short origin/master + cd "${srcdir}/${pkgname}" + ( + git show --format='%cI' -q master | sed 's/T.*//g;s/-//g' + echo . + git rev-parse --short master + ) | tr -d '\n' +} + +package() { + cd "${srcdir}/${pkgname}" + + make DESTDIR="${pkgdir}" FIRMWAREDIR=/usr/lib/firmware install + rm "${pkgdir}/usr/lib/firmware/"Makefile + + install -d "${pkgdir}/usr/share/licenses/rtl8723bt-firmware" + install -Dm644 LICEN* WHENCE "${pkgdir}/usr/share/licenses/rtl8723bt-firmware/" +} +# vim:set ts=2 sw=2 et