Advertisement
Cravix

libclaw-aur

May 6th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.30 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. source=()
  18. md5sums=('b5e9902c85e6ba7213ce4bde75574b7b' '51ab1b04f63ebf5be3d937ed5be9a27f' '0fe6c5f59532b9e46529e749839ea27b')
  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
  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.   svn export ${_svnmod} ${_svnmod}-build
  36.   cd ${_svnmod}-build/library
  37.   sed -i "38i#include <zlib.h>" claw/png.hpp
  38.   cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr
  39.   make || return 1
  40.   make DESTDIR="$pkgdir" install
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement