diff --git a/alarm/brcm-patchram-plus/0001-fix-includes.patch b/alarm/brcm-patchram-plus/0001-fix-includes.patch new file mode 100644 index 000000000..42086d7ae --- /dev/null +++ b/alarm/brcm-patchram-plus/0001-fix-includes.patch @@ -0,0 +1,25 @@ +From 2c1ba636c623e579444230c4f5e8f23974464126 Mon Sep 17 00:00:00 2001 +From: Kevin Mihelich +Date: Tue, 30 Jun 2015 20:04:08 -0600 +Subject: [PATCH] fix includes + +Signed-off-by: Kevin Mihelich +--- + bluetooth/brcm_patchram_plus.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/bluetooth/brcm_patchram_plus.c b/bluetooth/brcm_patchram_plus.c +index b4fa5a8..f31d8ef 100644 +--- a/bluetooth/brcm_patchram_plus.c ++++ b/bluetooth/brcm_patchram_plus.c +@@ -112,6 +112,7 @@ + #include + + #include ++#include + + #ifdef ANDROID + #include +-- +2.4.4 + diff --git a/alarm/brcm-patchram-plus/PKGBUILD b/alarm/brcm-patchram-plus/PKGBUILD new file mode 100644 index 000000000..4317b6864 --- /dev/null +++ b/alarm/brcm-patchram-plus/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Kevin Mihelich + +buildarch=4 + +pkgname=brcm-patchram-plus +pkgver=r1.4070e71 +pkgrel=1 +pkgdesc="Chromium OS Broadcom patchram utility" +arch=('armv7h') +depends=('bluez-libs') +makedepends=('git') +url='https://chromium.googlesource.com/chromiumos/third_party/broadcom/' +license=('custom:chromiumos') +source=("git+https://chromium.googlesource.com/chromiumos/third_party/broadcom" + '0001-fix-includes.patch') +md5sums=('SKIP' + 'bb1e24dce6c639ac4ab163eaf81fc3fd') + +pkgver() { + cd broadcom + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd broadcom + git apply ../0001-fix-includes.patch +} + +build() { + cd broadcom/bluetooth + make +} + +package() { + cd broadcom/bluetooth + install -dm755 ${pkgdir}/usr/bin + install -m755 brcm_patchram_plus ${pkgdir}/usr/bin +}