Subject: [PATCH] testing/openscad: New aport

From: Marian Buschsieweke <[email-masked]>
Date: Wed, 9 Oct 2019 23:18:57 +0200

The programmers solid 3D CAD modeller
http://openscad.org/
---
 testing/openscad/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 testing/openscad/APKBUILD

diff --git a/testing/openscad/APKBUILD b/testing/openscad/APKBUILD
new file mode 100644
index 0000000000..d6a0027793
--- /dev/null
+++ b/testing/openscad/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Marian Buschsieweke <[email-masked]>
+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="
+	qscintilla-dev qt5-qtbase-dev cgal-dev opencsg-dev libzip-dev boost-dev
+	eigen-dev libxml2-dev qt5-qtmultimedia-dev gmp-dev lib3mf-dev mpfr-dev
+	double-conversion-dev harfbuzz-dev flex bison
+	"
+checkdepends="imagemagick python3 xorgproto libx11"
+source="https://files.openscad.org/openscad-$pkgver.src.tar.gz"
+
+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
+	ctest
+}
+
+package() {
+	make INSTALL_ROOT="$pkgdir" install
+}
+
+sha512sums="073053f625ffa4fea6ed836396b7ff4b87b26cf7500b06c804983afc0f1dfd3d78bfb81b3fd217c3939b0ec915d85b0c7990773eaf968512a150deaa0399df13  openscad-2019.05.src.tar.gz"
-- 
2.23.0