This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 1.98 KB  |  views: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Stijn Segers <francesco dot borromini at gmail dot com>
  2. # Contributor: Tim Besard <tim.besard@gmail.com>
  3.  
  4. pkgname=beid-svn
  5. pkgver=1188
  6. pkgrel=1
  7. pkgdesc="The eID Middleware software for using the Belgian eID on your computer"
  8. arch=('x86_64' 'i686')
  9. url="http://code.google.com/p/eid-mw/"
  10. license=('LGPL')
  11. depends=('pcsclite')
  12. makedepends=('autoconf' 'libtool>=2.2.7c' 'make' 'pkgconfig' 'svn' 'ccache' 'gtk2'
  13.              'java-runtime' 'addinclude')
  14. conflicts=('beid')
  15. replaces=('beid')
  16. install='beid-svn.install'
  17. options=('makeflags')
  18. changelog=$pkgname.changelog
  19.  
  20. _svnmod=eid-mw-read-only
  21.  
  22. build() {
  23.  
  24.     _svntrunk=http://eid-mw.googlecode.com/svn/trunk/
  25.  
  26.     cd ${srcdir}/
  27.     if [ -d $_svnmod/.svn ]; then
  28.         msg "SVN tree found, reverting changes and updating to -r$pkgver"
  29.         (cd $_svnmod && svn revert -R . && make distclean; svn up -r $pkgver)
  30.     else
  31.         msg "Checking out SVN tree of -r$pkgver"
  32.         svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  33.     fi
  34.    
  35.     cd "${srcdir}/${_svnmod}"
  36.    
  37.     # This is temporary (but filthy) - we need to add the java compiler's location to the PATH
  38.     # in order to use it. Since sensible people have only one java environment installed, we
  39.     # won't be doing any checking on whether we source twice instead of just once.
  40.     [ -e /etc/profile.d/jre.sh ] && . /etc/profile.d/jre.sh
  41.  
  42.     # Fix some include header issues since the introduction of gcc 4.7
  43.     addinclude --top "common/src/socket/socketserver.cpp" "unistd.h"
  44.     addinclude --top "common/src/socket/socket.cpp" "unistd.h"
  45.     addinclude --top "common/src/util.cpp" "unistd.h"
  46.  
  47.     # Bootstrap
  48.     msg "Bootstrapping, might take a bit..."
  49.     autoreconf -i --force
  50.  
  51.     # Run configure
  52.     msg "Configuring beid"
  53.     ./configure --prefix=/usr
  54.    
  55.     # Build
  56.     msg "Running make"
  57.     make
  58.  
  59. }
  60.  
  61. package() {
  62.  
  63.     cd "${srcdir}/${_svnmod}"
  64.     msg "Running make install"
  65.     make DESTDIR=${pkgdir} install
  66.  
  67. }
clone this paste RAW Paste Data