2022-02-02 04:53:59 +00:00
|
|
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
|
|
|
# Contributor: loqs <bugs-archlinux@entropy-collector.net>
|
|
|
|
# Contributor: Gabriel Souza Franco <gabrielfrancosouza@gmail.com>
|
|
|
|
# Contributor: Florian Pritz
|
|
|
|
# Contributor: Jonas Heinrich <onny@project-insanity.org>
|
|
|
|
# Contributor: Jordi De Groof <jordi.degroof@gmail.com>
|
|
|
|
# Contributor: mickele
|
|
|
|
# Contributor: manwithgrenade
|
|
|
|
# Contributor: bricem13
|
|
|
|
# Contributor: gborzi
|
2022-07-30 00:09:37 +00:00
|
|
|
# Contributor: Adrian Insaurralde
|
2022-02-02 04:53:59 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2022-07-30 00:09:37 +00:00
|
|
|
# - remove makedepends on ospray
|
2022-02-02 04:53:59 +00:00
|
|
|
|
|
|
|
buildarch=8
|
|
|
|
highmem=1
|
|
|
|
|
|
|
|
pkgname=freecad
|
2023-11-23 04:42:34 +00:00
|
|
|
pkgver=0.21.2
|
|
|
|
pkgrel=2
|
2022-07-30 00:09:37 +00:00
|
|
|
pkgdesc='Feature based parametric 3D CAD modeler'
|
2022-02-02 04:53:59 +00:00
|
|
|
arch=(x86_64)
|
|
|
|
url='https://freecadweb.org/'
|
|
|
|
license=(LGPL)
|
2022-11-01 00:21:24 +00:00
|
|
|
depends=(boost-libs coin fmt glew jsoncpp libspnav med-openmpi netcdf
|
|
|
|
opencascade openmpi pugixml pyside2 pyside2-tools python-gitpython
|
|
|
|
python-markdown python-matplotlib python-pip python-pivy python-ply
|
|
|
|
python-yaml qt5-svg qt5-tools qt5-webengine qt5-x11extras
|
2023-03-11 17:30:37 +00:00
|
|
|
qt5-xmlpatterns xerces-c verdict)
|
2022-11-01 00:21:24 +00:00
|
|
|
makedepends=(boost cgns cmake eigen git libharu liblas ninja openvdb openvr
|
|
|
|
pdal postgresql-libs python-mpi4py python-shiboken2
|
2023-03-11 17:30:37 +00:00
|
|
|
qt5-webengine shiboken2 swig utf8cpp nlohmann-json)
|
2022-08-30 12:40:47 +00:00
|
|
|
optdepends=('graphviz: dependency graph support'
|
2022-11-01 00:21:24 +00:00
|
|
|
'openscad: OpenSCAD support')
|
2023-11-23 04:42:34 +00:00
|
|
|
source=("git+https://github.com/$pkgname/$pkgname#tag=$pkgver"
|
2023-11-20 13:59:12 +00:00
|
|
|
freecad-vtk9.3.patch) # tag: 0.21.1
|
|
|
|
b2sums=('SKIP'
|
2023-11-23 04:42:34 +00:00
|
|
|
'f0b5a4648eb4befabb2339bae4e42044e436aa50ad1c2a25b243c965272a217b2c1c69c34d0d20bd01c573008de10f733b74857ffecac502b8558a7095e305e5')
|
2023-11-20 13:59:12 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
patch -d freecad -Np1 -i "$srcdir"/freecad-vtk9.3.patch
|
|
|
|
}
|
2022-02-02 04:53:59 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cmake \
|
|
|
|
-B build \
|
2022-07-30 00:09:37 +00:00
|
|
|
-D BUILD_ENABLE_CXX_STD=C++17 \
|
|
|
|
-D BUILD_FLAT_MESH=ON \
|
2022-02-02 04:53:59 +00:00
|
|
|
-D BUILD_QT5=ON \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" \
|
|
|
|
-D CMAKE_CXX_FLAGS="$CXXFLAGS -fPIC -w" \
|
2022-07-30 00:09:37 +00:00
|
|
|
-D CMAKE_INSTALL_BINDIR=/usr/lib/freecad/bin \
|
2022-02-02 04:53:59 +00:00
|
|
|
-D CMAKE_INSTALL_DATADIR=/usr/share/freecad \
|
2022-07-30 00:09:37 +00:00
|
|
|
-D CMAKE_INSTALL_DATAROOTDIR=/usr/share \
|
2022-02-02 04:53:59 +00:00
|
|
|
-D CMAKE_INSTALL_DOCDIR=/usr/share/freecad/doc \
|
2022-07-30 00:09:37 +00:00
|
|
|
-D CMAKE_INSTALL_LIBDIR=/usr/lib/freecad/lib \
|
2022-02-02 04:53:59 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr/lib/freecad \
|
|
|
|
-D FREECAD_USE_EXTERNAL_PIVY=ON \
|
|
|
|
-D FREECAD_USE_OCC_VARIANT='Official Version' \
|
|
|
|
-D FREECAD_USE_QT_FILEDIALOG=ON \
|
|
|
|
-D PYTHON_EXECUTABLE=/usr/bin/python \
|
2022-07-30 00:09:37 +00:00
|
|
|
-D INSTALL_TO_SITEPACKAGES=ON \
|
2022-02-02 04:53:59 +00:00
|
|
|
-G Ninja \
|
2022-09-13 13:01:08 +00:00
|
|
|
-S $pkgname \
|
|
|
|
-W no-dev
|
2022-02-02 04:53:59 +00:00
|
|
|
ninja -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" ninja -C build install
|
2022-11-01 00:21:24 +00:00
|
|
|
|
2022-08-31 12:38:19 +00:00
|
|
|
# thumbnailer
|
2022-06-12 16:52:16 +00:00
|
|
|
install -Dm755 $pkgname/src/Tools/$pkgname-thumbnailer -t "$pkgdir/usr/bin/"
|
2022-11-01 00:21:24 +00:00
|
|
|
|
2022-08-31 12:38:19 +00:00
|
|
|
# symlinks
|
2022-02-02 04:53:59 +00:00
|
|
|
install -d "$pkgdir/usr/bin"
|
|
|
|
ln -sf /usr/lib/freecad/bin/FreeCAD "$pkgdir/usr/bin/freecad"
|
|
|
|
ln -sf /usr/lib/freecad/bin/FreeCAD "$pkgdir/usr/bin/FreeCAD"
|
|
|
|
ln -sf /usr/lib/freecad/bin/FreeCADCmd "$pkgdir/usr/bin/freecadcmd"
|
|
|
|
ln -sf /usr/lib/freecad/bin/FreeCADCmd "$pkgdir/usr/bin/FreeCADCmd"
|
|
|
|
}
|