Merge pull request #680 from asdil12/ti-uim

add pkg ti-uim to enable bluetooth on pandaboard
This commit is contained in:
Kevin Mihelich 2014-01-19 09:59:52 -08:00
commit c7a47a8021
4 changed files with 60 additions and 0 deletions

34
alarm/ti-uim/PKGBUILD Normal file
View file

@ -0,0 +1,34 @@
# Maintainer: Dominik Heidler <dominik@heidler.eu>
buildarch=4
pkgname=ti-uim
pkgver=0.0.1
pkgrel=1
pkgdesc="UIM daemon to enable bluetooth on the pandaboard"
arch=('armv7h')
url="https://gitorious.org/uim"
license=('GPL')
groups=()
provides=()
depends=('bluez')
makedepends=('git')
install='ti-uim.install'
source=("$pkgname::git://git.gitorious.org/uim/uim.git" "ti-bluetooth-uim" "ti-uim.service")
md5sums=('SKIP'
'defc01e5c17bf00a051dcf4ff51ae3ed'
'29b75236d1e99b2a82375312a8815fb6')
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
install -vDm755 uim $pkgdir/usr/bin/$pkgname
install -vDm755 $srcdir/ti-bluetooth-uim $pkgdir/usr/bin/ti-bluetooth-uim
install -vDm644 $srcdir/ti-uim.service $pkgdir/usr/lib/systemd/system/ti-uim.service
}

8
alarm/ti-uim/ti-bluetooth-uim Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
modprobe st_drv
modprobe -r btwilink
ti-uim &
modprobe btwilink
hciconfig hci0 up
wait

View file

@ -0,0 +1,8 @@
post_install() {
echo ">>> You need to enable the systemd service by running:"
echo ">>> systemctl enable ti-uim.service"
echo ">>> systemctl enable bluetooth.service"
echo ">>> systemctl start ti-uim.service"
echo ">>> systemctl start bluetooth.service"
}

View file

@ -0,0 +1,10 @@
[Unit]
Description=UIM daemon to enable bluetooth on the pandaboard
Before=bluetooth.service
[Service]
ExecStart=/usr/bin/ti-bluetooth-uim
ExecStopPost=/usr/bin/modprobe -r btwilink
[Install]
WantedBy=multi-user.target