arch-ppa/src/broadcom-bt-firmware-git/PKGBUILD

34 lines
1.2 KiB
Bash
Raw Normal View History

2019-07-27 10:40:51 -04:00
# Maintainer: Edward Pacman <edward at edward-p.xyz>
2018-12-23 21:01:10 -05:00
pkgname=broadcom-bt-firmware-git
pkgdesc="Broadcom bluetooth firmware."
conflicts=('bcm4335c0-firmware' 'bcm4350c5-firmware' 'bcm4356a2-firmware' 'bcm20702a1-firmware' 'bcm20702b0-firmware' 'bcm20703a1-firmware' 'bcm43142a0-firmware')
provides=('bcm4335c0-firmware' 'bcm4350c5-firmware' 'bcm4356a2-firmware' 'bcm20702a1-firmware' 'bcm20702b0-firmware' 'bcm20703a1-firmware' 'bcm43142a0-firmware')
2019-08-04 00:32:29 -04:00
pkgver=12.0.1.1011_p1.r4.g632c15f
pkgrel=1
2018-12-23 21:01:10 -05:00
arch=('any')
makedepends=('git')
url="https://github.com/winterheart/broadcom-bt-firmware"
2019-07-27 10:40:51 -04:00
license=('custom')
2018-12-23 21:01:10 -05:00
source=("git+https://github.com/winterheart/broadcom-bt-firmware.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/broadcom-bt-firmware"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
2019-07-27 10:40:51 -04:00
#Install firmwares
2018-12-23 21:01:10 -05:00
cd "${srcdir}/broadcom-bt-firmware/brcm"
for i in *.hcd; do
2019-07-27 10:40:51 -04:00
install -Dm644 "$i" "${pkgdir}/usr/lib/firmware/brcm/$i"
2018-12-23 21:01:10 -05:00
done
2019-07-27 10:40:51 -04:00
#Install LICENSE
cd ..
install -Dm644 LICENSE.MIT.txt "${pkgdir}/usr/license/broadcom-bt-firmware-git/LICENSE.MIT.txt"
install -Dm644 LICENSE.broadcom_bcm20702 "${pkgdir}/usr/license/broadcom-bt-firmware-git/LICENSE.broadcom_bcm20702"
2018-12-23 21:01:10 -05:00
}