diff options
author | Michael Hanson <hansonorders@verison.net> | 2010-07-16 21:31:25 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verison.net> | 2010-07-16 21:31:25 (GMT) |
commit | 84706c2666c50b41adeba482c55432712e841f44 (patch) | |
tree | bffd8bacc76b819dee2c91092898527d91b9e782 /abs/extra-testing/community/cwiid-git/PKGBUILD | |
parent | 25936b749c53b2f9c486ec6b9a5d1cab5b76daad (diff) | |
download | linhes_pkgbuild-84706c2666c50b41adeba482c55432712e841f44.zip linhes_pkgbuild-84706c2666c50b41adeba482c55432712e841f44.tar.gz linhes_pkgbuild-84706c2666c50b41adeba482c55432712e841f44.tar.bz2 |
cwiid-git: Initial include. Replaces cwiid-svn. ref 647
Diffstat (limited to 'abs/extra-testing/community/cwiid-git/PKGBUILD')
-rw-r--r-- | abs/extra-testing/community/cwiid-git/PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/abs/extra-testing/community/cwiid-git/PKGBUILD b/abs/extra-testing/community/cwiid-git/PKGBUILD new file mode 100644 index 0000000..909f224 --- /dev/null +++ b/abs/extra-testing/community/cwiid-git/PKGBUILD @@ -0,0 +1,62 @@ +#Contributor:Andrea Tarocchi <valdar@email.it> +pkgname=cwiid-git +#pkgver=`date +%Y%m%d` +pkgver=20100716 +pkgrel=1 +pkgdesc="Cwiid-git is the bleeding edge version of a wiimote's driver and utility tools" +arch=(i686 x86_64) +url="http://github.com/abstrakraft/cwiid" +license=('GPL') + +depends=('bluez>=4' 'gtk2' 'python') +makedepends=('git' 'make' 'automake' 'autoconf') +replaces=('cwiid' 'cwiid-svn') +provides=('cwiid' 'cwiid-git') +install=('cwiid.install') +source=() + +_gitroot=git://github.com/abstrakraft/cwiid.git +_gitname=cwiid +_builddir=$srcdir/$_gitname-build + +build() { + + export LDFLAGS= + + cd $srcdir/ + msg "Connecting to github.com GIT server...." + if [ -d $srcdir/$_gitname ] ; then + pushd $_gitname && git pull origin && popd + msg "The local files are updated." + else + git clone $_gitroot + fi + msg "GIT checkout done or server timeout" + msg "Starting make..." + rm -rf $_gitname-build + git clone $_gitname $_gitname-build + + cd $_builddir + + aclocal + autoreconf + ./configure --prefix=/usr --sysconfdir=/etc --disable-ldconfig + + make || return 1 + make DESTDIR="${pkgdir}" install || return 1 + +# aclocal +# autoreconf + +# ./configure --disable-ldconfig --prefix=/usr --sysconfdir=/etc --with-cwiid-plugins-dir=/lib/cwiid/plugins +# make LDFLAGS=-L../libcwiid || return 1 + +# install -d $startdir/pkg/usr/bin +# install -d $startdir/pkg/etc +# install -d $startdir/pkg/usr/lib +# install -d $startdir/pkg/usr/include + +# make install LDFLAGS=-L../libcwiid prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install + +# install -D -m644 ./wminput/README $pkgdir/usr/share/doc/cwiid/wminput +} |