SHARE
TWEET

Untitled

a guest Apr 18th, 2013 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Contributor:Andrea Tarocchi <valdar@email.it>
  2. pkgname=cwiid-git
  3. #pkgver=`date +%Y%m%d`
  4. pkgver=20120708
  5. pkgrel=1
  6. pkgdesc="Cwiid-git is the bleeding edge version of a wiimote's driver and utility tools"
  7. arch=(i686 x86_64)
  8. url="http://github.com/abstrakraft/cwiid"
  9. license=('GPL')
  10.  
  11. depends=('bluez>=4' 'gtk2' 'python2')
  12. makedepends=('git' 'make')
  13. conflicts=('cwiid' 'cwiid-svn')
  14. provides=('cwiid' 'cwiid-svn')
  15. install=cwiid.install
  16. source=(fix_libbluethoot.patch)
  17. md5sums=('d92745847f5ba534c2914be1d2b36092')
  18.  
  19. _gitroot=git://github.com/abstrakraft/cwiid.git
  20. _gitname=cwiid
  21. _builddir=$_gitname-build
  22.  
  23. build() {
  24.   export PYTHON=python2
  25.   export LDFLAGS=
  26.  
  27.   cd $srcdir/
  28.   msg "Connecting to github.com GIT server...."
  29.   if [ -d $srcdir/$_gitname ] ; then
  30.     pushd $_gitname && git pull origin && popd
  31.     msg "The local files are updated."
  32.   else
  33.     git clone $_gitroot
  34.   fi
  35.   msg "GIT checkout done or server timeout"
  36.   msg "Starting make..."
  37.   rm -rf $_gitname-build
  38.   git clone $_gitname $_gitname-build
  39.  
  40.   cd $_builddir
  41.  
  42.   git am --signoff < ../../fix_libbluethoot.patch
  43.  
  44.   aclocal
  45.   autoreconf
  46.   ./configure --prefix=/usr --sysconfdir=/etc --with-python=python`python2 --version 2>&1 | cut -d ' ' -f2` --disable-ldconfig
  47. # OLD CONFIG OPTIONS:
  48. # usefull options: LDFLAGS=-L/usr/lib/python2.7
  49.  
  50.   make
  51. # OLD MAKE OPTIONS:
  52. # CPPFLAGS=-I/usr/include/python2.7 || return 1
  53.   make DESTDIR="${pkgdir}" install
  54.  
  55. # OLD BUILD WAY:
  56. #  aclocal
  57. #  autoreconf
  58.  
  59. #  ./configure --disable-ldconfig --prefix=/usr --sysconfdir=/etc --with-cwiid-plugins-dir=/lib/cwiid/plugins
  60. #  make LDFLAGS=-L../libcwiid || return 1
  61.  
  62. #  install -d $startdir/pkg/usr/bin
  63. #  install -d $startdir/pkg/etc
  64. #  install -d $startdir/pkg/usr/lib
  65. #  install -d $startdir/pkg/usr/include
  66.  
  67. #  make install LDFLAGS=-L../libcwiid prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install
  68.  
  69. #  install -D -m644 ./wminput/README $pkgdir/usr/share/doc/cwiid/wminput
  70. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top