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 18th, 2013  |  syntax: None  |  size: 1.27 KB  |  views: 51  |  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. # Maintainer: Miguel Revilla <yo@miguelrevilla.com>
  2. # Contributor: nem <nem@ikitten.co.uk>
  3. # Contributor: agvares <agvares13@gmail.com>
  4. # Contributor: p2k <Patrick.Schneider@uni-ulm.de>
  5.  
  6. pkgname=codelite
  7. pkgver=5.1
  8. pkgrel=3
  9. pkgdesc="Open-source, cross platform IDE for the C/C++ programming languages"
  10. arch=('i686' 'x86_64')
  11. url="http://www.codelite.org/"
  12. license=('GPL')
  13. depends=('wxgtk2.9>=2.9.4' 'curl')
  14. makedepends=('pkgconfig' 'cmake')
  15. optdepends=('graphviz: callgraph visualization')
  16. source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-gtk.src.tar.gz
  17.         codelite.patch)
  18. md5sums=('84c5c96702d2dafae39a4a346103554d'
  19.          'd0d3831d383cdfe793daf04497c689c6')
  20.  
  21. build() {
  22.     cd ${srcdir}/${pkgname}-${pkgver}
  23.     patch -p1 -i ../codelite.patch
  24.     mkdir build
  25.     cd build
  26.     sed -i 's/wx-config/wx-config-2.9/g' ../CMakeLists.txt
  27.     cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_CLANG=1 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.9 -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc-2.9 ..
  28.     make -j2
  29. }
  30.  
  31. package() {
  32.     cd ${srcdir}/${pkgname}-${pkgver}/build
  33.     make -j1 DESTDIR=${pkgdir} install
  34.     install -m 644 -D ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  35. }
clone this paste RAW Paste Data