# Author: Madotsuki pkgname=mandelbulber2 pkgver=2.29 _pkgver_orig=2.29 pkgrel=1 pkgdesc="3D application designed to render 3D fractals such as the Mandelbulb, Mandelbox, BulbBox, JuliaBulb, Menger Sponge, and Iterated Function Systems." arch=('x86_64' 'i686') url="https://github.com/buddhi1980/mandelbulber2" license=('GPL3') depends=('qt5-tools' 'libjpeg-turbo' 'libpng12' 'gsl' 'openmpi') provides=($pkgname) conflicts=($pkgname) source=("${pkgname}::https://github.com/buddhi1980/mandelbulber2/archive/2.29.tar.gz") sha256sums=('aa9d9df804a83e90174ed147c5f3074ac1128ee452dd1b81eb8b8a61888b17e1') build() { cd $pkgname-$_pkgver_orig/$pkgname qmake-qt5 qmake/mandelbulber.pro make PREFIX=/usr } package() { cd "$srcdir/$pkgname-$_pkgver_orig" install -m755 -d "${pkgdir}/usr/bin" install -D -m644 "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/deploy/linux/mandelbulber2.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" install -m755 -d "${pkgdir}/usr/share/${pkgname}" install -m755 -d "${pkgdir}/usr/share/applications" install -m755 -d "${pkgdir}/usr/share/icons" cp -ra "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/deploy/share/mandelbulber2/data" "$pkgdir/usr/share/${pkgname}/data" cp -ra "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/deploy/share/mandelbulber2/examples" "$pkgdir/usr/share/${pkgname}/examples" cp -ra "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/deploy/share/mandelbulber2/icons" "$pkgdir/usr/share/${pkgname}/icons" cp -ra "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/language" "$pkgdir/usr/share/${pkgname}/language" cp -ra "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/formula" "$pkgdir/usr/share/${pkgname}/formula" cp -ra "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/deploy/share/mandelbulber2/textures" "$pkgdir/usr/share/${pkgname}/textures" cp -ra "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/deploy/share/mandelbulber2/toolbar" "$pkgdir/usr/share/${pkgname}/toolbar" install -m755 "${srcdir}/${pkgname}-${_pkgver_orig}/${pkgname}/mandelbulber2" "${pkgdir}/usr/bin/" }