summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 86b9bc9ca8273e5c66281ab3405ada150fdb6c7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#Maintainer: Martin Friedrich <npanic@acid.wtf>
#Contributor: Martin Friedrich <npanic@acid.wtf>
pkgname=mandelbulber2-opencl-git
_pkgname=mandelbulber2
pkgver=20190622
pkgrel=1
pkgdesc="3D application designed to render 3D fractals such as the Mandelbulb, Mandelbox, BulbBox, JuliaBulb, Menger Sponge, and Iterated Function Systems. Git version."
arch=('any')
url="https://github.com/buddhi1980/mandelbulber2"
license=('GPL3')
depends=('lzo' 'qt5-tools' 'libjpeg-turbo' 'libpng12' 'gsl' 'openmpi' 'qt5-multimedia' 'opencl-headers' 'opencl-mesa' 'opencl-nvidia' 'ocl-icd')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
source=("${_pkgname}::git+https://github.com/buddhi1980/mandelbulber2")
md5sums=('SKIP')

pkgver()
{

	cd $_pkgname
	git log -1 --format="%cd" --date=short | sed "s|-||g"
}

build()
{
	cd $_pkgname/$_pkgname
	qmake-qt5 qmake/mandelbulber-opencl.pro
	make PREFIX=/usr
}

package()
{
	cd "$srcdir/$_pkgname"

	install -m755 -d "${pkgdir}/usr/bin"
	install -D -m644 "${srcdir}/${_pkgname}/${_pkgname}/deploy/linux/mandelbulber2.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
	install -m755 -d "${pkgdir}/usr/share/doc/${_pkgname}"
	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}/${_pkgname}/deploy/doc/Mandelbulber_Manual.pdf" "$pkgdir/usr/share/doc/${_pkgname}/"
	cp -ra "${srcdir}/${_pkgname}/${_pkgname}/opencl" "$pkgdir/usr/share/${_pkgname}/opencl"
	cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/data" "$pkgdir/usr/share/${_pkgname}/data"
	cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/examples" "$pkgdir/usr/share/${_pkgname}/examples"
	cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/icons" "$pkgdir/usr/share/${_pkgname}/icons"
	cp -ra "${srcdir}/${_pkgname}/${_pkgname}/language" "$pkgdir/usr/share/${_pkgname}/language"
	cp -ra "${srcdir}/${_pkgname}/${_pkgname}/formula" "$pkgdir/usr/share/${_pkgname}/formula"
	cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/textures" "$pkgdir/usr/share/${_pkgname}/textures"
	cp -ra "${srcdir}/${_pkgname}/${_pkgname}/deploy/share/mandelbulber2/toolbar" "$pkgdir/usr/share/${_pkgname}/toolbar"
	install -m755 "${srcdir}/${_pkgname}/${_pkgname}/mandelbulber2" "${pkgdir}/usr/bin/"
}