mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
Merge pull request #680 from asdil12/ti-uim
add pkg ti-uim to enable bluetooth on pandaboard
This commit is contained in:
commit
c7a47a8021
4 changed files with 60 additions and 0 deletions
34
alarm/ti-uim/PKGBUILD
Normal file
34
alarm/ti-uim/PKGBUILD
Normal 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
8
alarm/ti-uim/ti-bluetooth-uim
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
modprobe st_drv
|
||||
modprobe -r btwilink
|
||||
ti-uim &
|
||||
modprobe btwilink
|
||||
hciconfig hci0 up
|
||||
wait
|
8
alarm/ti-uim/ti-uim.install
Normal file
8
alarm/ti-uim/ti-uim.install
Normal 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"
|
||||
}
|
||||
|
10
alarm/ti-uim/ti-uim.service
Normal file
10
alarm/ti-uim/ti-uim.service
Normal 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
|
Loading…
Reference in a new issue