updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / bluemote-k700i / PKGBUILD
blobe9c7e485276683986cddcd8a7045ddbc1dd842bf
1 pkgname=bluemote-k700i
2 arch=('i686')
3 pkgver=2.0
4 pkgrel=1
5 pkgdesc="Will turn your Bluetooth-enabled mobile phone into a remote control for your computer - only for SE k700i"
6 url="http://www.geocities.com/saravkrish/progs/bluemote"
7 license="GPL"
8 conflicts=('bluemote')
9 provides=('bluemote')
10 depends=('libxtst')
11 source=(http://www.geocities.com/saravkrish/progs/bluemote/bluemote.$pkgver.tar.gz \
12 http://www.geocities.com/saravkrish/progs/bluemote/scripts.tar.gz \
13 bluemote.rules bluemote.c serial.c bluemote.install)
14 install=bluemote.install
15 md5sums=('69ab4eafb839a3f22fca2832fbba60f6' \
16 'd1d21cab765522ff9ce82b60a23bd150' 'c246b00d5a226bc00d1b85036dafcaca' \
17 '867509118e1073ae8232c4b45e55bd40' '7879d092a14301d4c4f0f8d22d3ac732' \
18 'aef4799a5405626573e073a75ae8e5aa')
20 build () {
21   cd $startdir/src/
22   cp bluemote.c $startdir/src/bluemote/
23   cp serial.c $startdir/src/bluemote/
24   cd $startdir/src/bluemote
25   make clean
26   make || return 1
27   install -d $startdir/pkg/usr/bin $startdir/pkg/etc/bluemote
28   install -m755 bluemote $startdir/pkg/usr/bin
29   install -m644 bluemote-example.cfg $startdir/pkg/etc/bluemote/bluemote.cfg
30   install -m644 config.txt $startdir/pkg/etc/bluemote/config.txt 
31   cd $startdir/src/
32   chmod 755 scripts/ -R
33   cp -R scripts/ $startdir/pkg/etc/bluemote/
34   cd $startdir/src/
35   install -D -m644 bluemote.rules $startdir/pkg/etc/udev/rules.d/bluemote.rules