Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

libclaw-svn

By: Cravix on Aug 15th, 2012  |  syntax: Bash  |  size: 1.25 KB  |  hits: 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: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
  2. # Contributor: Nicoco <truenicoco_nospam_at_gmail_dot_com>
  3. # Contributor: Cilyan Olowen <gaknar@gmail.com>
  4. # Contributor: Ronan Rabouin <darkbaboon@gmail.com>
  5. # Contributor: Quentin Stievenart <acieroid@awesom.eu>
  6. # Maintainer: Quentin Stievenart <acieroid@awesom.eu>
  7.  
  8. pkgname=libclaw-svn
  9. pkgver=288
  10. pkgrel=1
  11. pkgdesc="C++ Library Absolutely Wonderful"
  12. arch=('i686' 'x86_64')
  13. url="http://$pkgname.sourceforge.net/"
  14. license=('LGPL')
  15. depends=('bash' 'libjpeg' 'libpng>=1.2.8' 'gcc-libs')
  16. makedepends=('cmake>=2.4' 'patch' 'svn')
  17. provides=('libclaw')
  18. conflicts=('libclaw')
  19.  
  20. _svnmod="libclaw"
  21. _svntrunk="https://libclaw.svn.sourceforge.net/svnroot/libclaw/trunk"
  22.  
  23. build() {
  24.   cd ${srcdir}
  25.   msg "Connecting to SVN server..."
  26.   if [ -d ${_svnmod}/.svn ]; then
  27.     cd ${_svnmod} && svn up && cd ..
  28.   else
  29.     svn co ${_svntrunk} ${_svnmod} --config-dir ./${_svnmod}
  30.   fi
  31.  
  32.   msg "SVN checkout done or server timeout"
  33.   msg "Starting make..."
  34.  
  35.   rm -rf ${_svnmod}-build
  36.   cp -rf ${_svnmod} ${_svnmod}-build
  37.   cd ${_svnmod}-build/library
  38.   sed -i "38i#include <zlib.h>" claw/png.hpp
  39.  
  40.   cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr
  41.   make || return 1
  42.   make DESTDIR="$pkgdir" install
  43. }