Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 19th, 2013  |  syntax: None  |  size: 0.96 KB  |  views: 33  |  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. pkgname=libg15render-svn
  2. pkgver=324
  3. pkgrel=1
  4. pkgdesc="Provides low-level access to the Logitech G15 and G11 keyboards and Z10 speakers"
  5. arch=('i686' 'x86_64')
  6. url="http://www.g15tools.com/"
  7. license=('GPL')
  8. depends=('libusb')
  9. makedepends=('subversion')
  10. options=(!libtool)
  11. conflicts=('libg15')
  12. source=()
  13. md5sums=()
  14.  
  15. _svntrunk=https://g15tools.svn.sourceforge.net/svnroot/g15tools/trunk/libg15render
  16. _svnmod=libg15render
  17.  
  18. build() {
  19.   cd "$srcdir"
  20.   msg "Connecting to SVN server...."
  21.  
  22.   if [[ -d "$_svnmod/.svn" ]]; then
  23.     (cd "$_svnmod" && svn up -r "$pkgver")
  24.   else
  25.     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  26.   fi
  27.  
  28.   msg "SVN checkout done or server timeout"
  29.   msg "Starting build..."
  30.  
  31.   rm -rf "$srcdir/$_svnmod-build"
  32.   svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  33.   cd "$srcdir/$_svnmod-build"
  34.  
  35.   ./bootstrap
  36.   ./configure --prefix=/usr --disable-static
  37.   make || return 1
  38.   make DESTDIR="${pkgdir}" install
  39. }