broadcom-bluetooth

Make a PKGBUILD? Submit it here for user review and possible placement into the repository.

broadcom-bluetooth

Postby msalerno » Thu Apr 24, 2014 2:31 pm

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"
}
')
msalerno
 
Posts: 20
Joined: Wed Apr 16, 2014 11:13 pm

Re: broadcom-bluetooth

Postby pepedog » Thu Apr 24, 2014 6:40 pm

This pkg should really have the firmware and hcd file, also the service file.
First thing, make sure firmware doesn't conflict with anything in linux-firmware pkg
That's the right place for patchram files
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: broadcom-bluetooth

Postby pepedog » Wed Apr 30, 2014 1:29 pm

I have done it now
https://github.com/archlinuxarm/PKGBUILDs/commit/5fe9e6f074e862d4386f633c98bd2a95d9f96d39
$this->bbcode_second_pass_code('', 'pacman -Syu
pacman -S firmware-brcm43xx
systemctl enable brcm43xx Bluetooth
sync
reboot')
sync really isn't needed after pacman operation now
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to User-Submitted Packages

Who is online

Users browsing this forum: No registered users and 14 guests