# 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'

# As gitorious was aquired by gitlab and they might shutdown gitorious.org
# I created a backup of the git repo on my github account: git://github.com/asdil12/ti-uim.git
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
}