aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openscad/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/openscad/APKBUILD')
-rw-r--r--testing/openscad/APKBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/openscad/APKBUILD b/testing/openscad/APKBUILD
new file mode 100644
index 0000000000..cb47857507
--- /dev/null
+++ b/testing/openscad/APKBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
+pkgname=openscad
+pkgver=2019.05
+pkgrel=0
+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"