This is my first attempt at a PKGBUILD for arch. It's very basic. My objective is to eventually get Bluetooth setup and working on my cubox-i.
The attached PKGBUILD will build the tool required to load the firmware. I'm still working on a PKGBUILD to build, install and load the firmware.
I believe that the PKGBUILD is fine, but my only concern is the destination of the binaries, i'm not sure what path to use to stay consistent with other packages.
$this->bbcode_second_pass_code('', '# Maintainer: Matthew Salerno <vagabond_king@yahoo.com>
pkgname=broadcom-bluetooth
pkgdesc="bluetooth firmware utility for the bcm4329 bluetooth"
pkgver=1.0
pkgrel=1
arch=($CARCH)
url="https://code.google.com/p/broadcom-bluetooth/"
license=('apache')
makedepends=('git')
depends=('bluez-libs')
source=('git+https://code.google.com/p/broadcom-bluetooth/')
options=('!buildflags')
md5sums=(
'SKIP'
)
build() {
cd "${srcdir}/${pkgname}"
make all
}
package() {
install -D -m0755 "${srcdir}/${pkgname}/brcm_patchram_plus" "${pkgdir}/usr/bin/brcm_patchram_plus"
install -D -m0755 "${srcdir}/${pkgname}/brcm_patchram_plus_h5" "${pkgdir}/usr/bin/brcm_patchram_plus_h5"
install -D -m0755 "${srcdir}/${pkgname}/brcm_patchram_plus_usb" "${pkgdir}/usr/bin/brcm_patchram_plus_usb"
}
')