Guest User

bartus

a guest
Jul 2nd, 2017
482
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Maintainer: John Gleezowood <psyrccio@gmail.com>
  2. #Contributor: John Gleezowood <psyrccio@gmail.com>
  3. pkgname=mandelbulber2-git
  4. pkgver=2.12.alpha4.r1.g04b8cf55
  5. pkgrel=1
  6. pkgdesc="3D application designed to render 3D fractals such as the Mandelbulb, Mandelbox, BulbBox, JuliaBulb, Menger Sponge, and Iterated Function Systems. Git version."
  7. arch=('i686' 'x86_64')
  8. url="https://github.com/buddhi1980/mandelbulber2"
  9. license=('GPL3')
  10. depends=('ocl-icd' 'openexr' 'lzo' 'qt5-base' 'qt5-multimedia' 'libjpeg' 'libtiff' 'libpng' 'gsl')
  11. makedepends=('opencl-headers' 'qt5-tools' 'cmake' 'extra-cmake-modules' 'git')
  12. provides=($pkgname%-git)
  13. conflicts=($pkgname%-git)
  14. source=("${pkgname}::git+https://github.com/buddhi1980/mandelbulber2")
  15. md5sums=('SKIP')
  16.  
  17. pkgver() {
  18. cd ${srcdir}/${pkgname}
  19. git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  20. }
  21.  
  22. build()
  23. {
  24. cd ${srcdir}/${pkgname}/${pkgname%-git}/cmake
  25. cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr/bin .
  26. make
  27. }
  28.  
  29. package()
  30. {
  31. cd ${srcdir}/${pkgname}/${pkgname%-git}/cmake
  32. make install
  33.  
  34. cp -Lr "${srcdir}/${pkgname}/${pkgname%-git}/deploy/share/" "$pkgdir/usr/share/"
  35.  
  36. install -D -m644 "${srcdir}/${pkgname}/${pkgname%-git}/deploy/linux/mandelbulber2.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop"
  37.  
  38. install -D -m644 "${srcdir}/${pkgname}/${pkgname%-git}/deploy/share/mandelbulber2/icons/mandelbulber.png" "${pkgdir}/usr/share/icons/mandelbulber.png"
  39.  
  40. }
RAW Paste Data