Advertisement
Cravix

libclaw-svn

Aug 15th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement