1 #Contributor:Andrea Tarocchi <valdar@email.it>
6 pkgdesc="Cwiid-git is the bleeding edge version of a wiimote's driver and utility tools"
8 url="http://github.com/abstrakraft/cwiid"
11 depends=('bluez>=4' 'gtk2' 'python2')
12 makedepends=('git' 'make')
13 conflicts=('cwiid' 'cwiid-svn')
14 provides=('cwiid' 'cwiid-svn')
15 install=('cwiid.install')
18 _gitroot=git://github.com/abstrakraft/cwiid.git
20 _builddir=$srcdir/$_gitname-build
27 msg "Connecting to github.com GIT server...."
28 if [ -d $srcdir/$_gitname ] ; then
29 pushd $_gitname && git pull origin && popd
30 msg "The local files are updated."
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
36 rm -rf $_gitname-build
37 git clone $_gitname $_gitname-build
43 ./configure --prefix=/usr --sysconfdir=/etc --with-python=python`python2 --version 2>&1 | cut -d ' ' -f2` --disable-ldconfig
45 # usefull options: LDFLAGS=-L/usr/lib/python2.7
49 # CPPFLAGS=-I/usr/include/python2.7 || return 1
50 make DESTDIR="${pkgdir}" install
56 # ./configure --disable-ldconfig --prefix=/usr --sysconfdir=/etc --with-cwiid-plugins-dir=/lib/cwiid/plugins
57 # make LDFLAGS=-L../libcwiid || return 1
59 # install -d $startdir/pkg/usr/bin
60 # install -d $startdir/pkg/etc
61 # install -d $startdir/pkg/usr/lib
62 # install -d $startdir/pkg/usr/include
64 # make install LDFLAGS=-L../libcwiid prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install
66 # install -D -m644 ./wminput/README $pkgdir/usr/share/doc/cwiid/wminput