summaryrefslogtreecommitdiff
path: root/manualPorts/openscad/Pkgfile
blob: cf3b11a3e725b50583f0cefb4b9d8268d9b5829b (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
# Description: Programmers Solid 3D CAD Modeller
# URL:         http://www.openscad.org/
# Maintainer:  Erich Eckner, crux at eckner dot net
# Contributor: Joe M, joe9mail at gmail dot com
# Depends on:  qt5 cgal opencsg libgmp libmpfr boost cmake gcc bison flex eigen double-conversion

name=openscad
version=2021.01
release=2
source=(https://files.openscad.org/openscad-$version.src.tar.gz
        https://github.com/openscad/openscad/commit/00a4692989c4e2f191525f73f24ad8727bacdf41.patch
        https://github.com/openscad/openscad/commit/84addf3c1efbd51d8ff424b7da276400bbfa1a4b.patch
        https://github.com/openscad/openscad/commit/4c5d19c302d7d440d1c11c3d02b3ce5eb2e548da.patch
        https://github.com/openscad/openscad/commit/9aa0d7e9f2914fe5f547bdde69202161d1c6064d.patch
        https://github.com/openscad/openscad/commit/c50837d597a17b5d4cd8c7ed8e09cb07edb98a6f.patch
        https://github.com/openscad/openscad/commit/abfebc651343909b534ef337aacc7604c99cf0ea.patch
        https://github.com/openscad/openscad/commit/08bf69b4115c989fc5671254e0d05735d01bcca5.patch
        fs.patch)

build () {
   cd $name-$version

   for s in ../*.patch; do
     patch -p1 -i "$s"
   done

   qmake PREFIX=/usr
   make
   make DESTDIR=$PKG INSTALL_ROOT=$PKG install
}