freecad/PKGBUILD

109 lines
2.3 KiB
Text
Raw Permalink Normal View History

2018-10-18 01:03:07 +02:00
# Maintainer: Grey Christoforo <first name at last name dot net>
# Maintainer: Adrian Insaurralde <adrianinsaval at gmail dot com>
2019-12-27 20:27:04 +01:00
pkgname=freecad-git
2024-09-15 19:39:48 +02:00
pkgver=1.0rc1
2020-11-20 19:14:12 +01:00
pkgrel=1
pkgdesc='A general purpose 3D CAD modeler - git checkout'
2019-03-15 20:13:11 +01:00
arch=('x86_64')
2022-06-14 00:41:49 +02:00
url='https://www.freecad.org/'
license=('LGPL')
2020-11-21 14:03:21 +01:00
depends=(
boost-libs
coin
2023-03-09 03:27:24 +01:00
fmt
2020-11-21 14:03:21 +01:00
glew
jsoncpp
med
netcdf
opencascade
openmpi
pyside6
pyside6-tools
2020-12-18 11:06:41 +01:00
python-yaml
2020-11-21 14:03:21 +01:00
python-matplotlib
python-packaging
2020-11-21 14:03:21 +01:00
python-pivy
python-ply
qt6-svg
qt6-tools
qt6-base
2024-04-30 02:28:57 +02:00
qt6-5compat
2020-11-21 14:03:21 +01:00
shared-mime-info
2021-05-03 17:09:40 +02:00
vtk
verdict
2023-10-03 03:09:22 +02:00
xerces-c
yaml-cpp
2020-11-21 14:03:21 +01:00
)
makedepends=(
boost
cmake
eigen
git
ninja
2023-10-03 03:09:22 +02:00
nlohmann-json
shiboken6
2020-11-21 14:03:21 +01:00
swig
)
2022-02-13 13:17:02 +01:00
checkdepends=(
pugixml
)
2021-01-09 12:56:40 +01:00
optdepends=(
'libspnav: 3D mouse support'
2021-05-09 17:39:15 +02:00
'openscad: OpenSCAD support'
'graphviz: dependency graph support'
'python-pip: support installing python dependencies for addons'
'calculix-ccx: FEM solver backend'
2021-01-09 12:56:40 +01:00
)
provides=('freecad')
2019-12-27 20:27:04 +01:00
conflicts=('freecad' 'freecad-appimage' 'freecad-appimage-git')
2024-09-15 19:39:48 +02:00
source=("git+https://github.com/FreeCAD/FreeCAD.git#tag=$pkgver")
md5sums=('SKIP')
2019-12-27 20:27:04 +01:00
prepare() {
2020-12-05 12:34:05 +01:00
cd FreeCAD
2023-11-14 19:36:48 +01:00
git submodule update --init
}
build() {
cmake \
-B build \
2021-11-14 23:15:53 +01:00
-D BUILD_FLAT_MESH=ON \
-D BUILD_DESIGNER_PLUGIN=ON \
-D FREECAD_QT_VERSION=6 \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects -fPIC -w" \
-D CMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects -fPIC -w" \
-D CMAKE_INSTALL_DATADIR=/usr/share/freecad \
-D CMAKE_INSTALL_DATAROOTDIR=/usr/share \
-D CMAKE_INSTALL_DOCDIR=/usr/share/freecad/doc \
-D CMAKE_INSTALL_PREFIX=/usr/lib/freecad \
-D FREECAD_USE_EXTERNAL_PIVY=ON \
-D FREECAD_USE_QT_FILEDIALOG=ON \
2021-05-09 15:07:41 +02:00
-D INSTALL_TO_SITEPACKAGES=ON \
-D ENABLE_DEVELOPER_TESTS=OFF \
-G Ninja \
-S FreeCAD \
-W no-dev
ninja -C build
}
2024-09-15 19:39:48 +02:00
# check() {
# cd build
# LD_LIBRARY_PATH=lib bin/FreeCADCmd --console --run-test 0
# }
2020-12-17 15:44:44 +01:00
package() {
DESTDIR="$pkgdir" ninja -C build install
2022-05-18 01:35:52 +02:00
# tools
install -Dm755 FreeCAD/src/Tools/{freecad-thumbnailer,fcinfo} -t "$pkgdir/usr/bin/"
2021-01-08 21:24:29 +01:00
# symlinks
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"
}