add pkg ti-uim to enable bluetooth on pandaboard

This commit is contained in:
Dominik Heidler 2014-01-19 18:38:37 +01:00
parent 37259069f1
commit 61ed96a713
4 changed files with 58 additions and 0 deletions

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

@ -0,0 +1,32 @@
# Maintainer: Dominik Heidler <dominik@heidler.eu>
pkgname=ti-uim
pkgver=0.0.1
pkgrel=1
pkgdesc="UIM daemon to enable bluetooth on the pandaboard"
arch=('armv7h')
url="http://archlinuxarm.org/forum/viewtopic.php?f=48&t=6731&p=37321#p37254"
license=('GPL')
groups=()
provides=()
depends=()
makedepends=('make' 'gcc' '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