summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48233dbb2dd47c96ae93086582507fba06d7425f (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
53
54
55
56
57
58
59
60
# Maintainer: michaelkuc6 <michaelkuc6 at gmail dot com>
_pkgname=fractorium
pkgname=${_pkgname}-git
pkgver=r1029.391ee67
pkgrel=1
pkgdesc="A Qt-based fractal flame editor which uses a C++ re-write of the flam3 algorithm named Ember and a GPU capable version named EmberCL which implements a portion of the cuburn algorithm in OpenCL."
arch=('x86_64')
url="https://bitbucket.org/mfeemster/fractorium/"
license=('GPL3')
makedepends=(
	'git'
	'libgl'
	'glm'
	'libjpeg-turbo'
	'libpng'
	'libxml2'
	'opencl-headers'
)
depends=(
	'ocl-icd'
	'openexr>=3.0'
	'qt6-3d'
)
provides=("${_pkgname}")
conflicts=()
epoch=1
source=(
	"${_pkgname}::git+https://bitbucket.org/mfeemster/fractorium.git"
)

sha256sums=(
	'SKIP'
)

pkgver() {
	cd "${srcdir}/${_pkgname}"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "${srcdir}/${_pkgname}"
	qmake6 main.pro -r -spec linux-g++-64 CONFIG+="release native"
}

build() {
	cd "${srcdir}/${_pkgname}"

	make
}

check() {
	: #Do nothing
}

package() {
	cd "${srcdir}/${_pkgname}"
	make INSTALL_ROOT="${pkgdir}/" install
	install -m644 -D "${srcdir}/${_pkgname}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}