aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openscad/APKBUILD
blob: 1fafc433d5400848462aa653015f91b85b009a54 (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
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=openscad
pkgver=2019.05
pkgrel=1
pkgdesc="The programmers solid 3D CAD modeller"
url="http://openscad.org/"
arch="all"
license="GPL-2.0-only"
subpackages="$pkgname-doc"
makedepends="
	bison
	boost-dev
	cgal-dev
	double-conversion-dev
	eigen-dev
	flex
	glew-dev
	gmp-dev
	harfbuzz-dev
	lib3mf-dev
	libxml2-dev
	libzip-dev
	mpfr-dev
	opencsg-dev
	qscintilla-dev
	qt5-qtbase-dev
	qt5-qtmultimedia-dev
	"
checkdepends="
	cmake
	imagemagick
	libx11
	python3
	xorgproto
	xvfb-run
	"
source="https://files.openscad.org/openscad-$pkgver.src.tar.gz"
options="!check" # Tests fail in xvfb, but pass on real X server

build() {
	qmake-qt5 PREFIX="/usr"
	# fix issue with #include_next stdlib.h
	sed -e 's/-isystem \/usr\/include //g' -i Makefile
	make
}

check() {
	cd tests
	cmake .
	make
	#xvfb-run ctest # Tests fail in xvfb, but pass on real X server
	ctest
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="073053f625ffa4fea6ed836396b7ff4b87b26cf7500b06c804983afc0f1dfd3d78bfb81b3fd217c3939b0ec915d85b0c7990773eaf968512a150deaa0399df13  openscad-2019.05.src.tar.gz"