2018-10-18 01:03:07 +02:00
|
|
|
# Maintainer: Grey Christoforo <first name at last name dot net>
|
2019-04-03 19:14:00 +02:00
|
|
|
# Maintainer: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2019-12-27 20:27:04 +01:00
|
|
|
pkgname=freecad-git
|
2020-05-04 11:10:02 +02:00
|
|
|
pkgver=0.18.r4841.ga2aab9d17f
|
2019-04-03 19:14:00 +02:00
|
|
|
pkgrel=1
|
2019-12-27 20:27:04 +01:00
|
|
|
epoch=0
|
2015-06-30 09:40:28 +02:00
|
|
|
pkgdesc='A general purpose 3D CAD modeler - git checkout'
|
2019-03-15 20:13:11 +01:00
|
|
|
arch=('x86_64')
|
|
|
|
url='https://www.freecadweb.org/'
|
2015-06-30 09:40:28 +02:00
|
|
|
license=('LGPL')
|
2019-04-03 19:14:00 +02:00
|
|
|
depends=('boost-libs' 'curl' 'desktop-file-utils' 'glew' 'hicolor-icon-theme'
|
2019-10-20 08:53:10 +02:00
|
|
|
'jsoncpp' 'libspnav' 'med' 'opencascade' 'openmpi' 'shiboken2' 'xerces-c'
|
2019-12-27 17:33:46 +01:00
|
|
|
'pyside2' 'pyside2-tools' 'python-matplotlib' 'python-netcdf4' 'python-pivy'
|
|
|
|
'qt5-svg' 'qt5-webkit' 'qt5-webengine' 'qt5-base')
|
2019-04-03 19:14:00 +02:00
|
|
|
makedepends=('boost' 'cmake' 'eigen' 'git' 'gcc-fortran'
|
|
|
|
'pyside2-tools' 'swig' 'qt5-tools')
|
|
|
|
optdepends=('pycollada: Create, edit and load COLLADA documents.')
|
2015-06-30 09:40:28 +02:00
|
|
|
provides=('freecad')
|
2019-12-27 20:27:04 +01:00
|
|
|
conflicts=('freecad' 'freecad-appimage' 'freecad-appimage-git')
|
2019-12-31 14:48:34 +01:00
|
|
|
source=("git+https://github.com/FreeCAD/FreeCAD.git")
|
2019-08-22 20:36:39 +02:00
|
|
|
md5sums=('SKIP')
|
2015-06-30 09:40:28 +02:00
|
|
|
|
|
|
|
pkgver() {
|
2019-12-31 14:48:34 +01:00
|
|
|
cd "${srcdir}/FreeCAD"
|
2019-12-31 14:50:28 +01:00
|
|
|
# upstream recyles the "pre" and "staging" tags so they do not produce stable commit counts
|
2019-11-04 15:26:10 +01:00
|
|
|
git describe --long --tags --exclude '*pre*' --exclude '*staging*' | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/_//'
|
2015-06-30 09:40:28 +02:00
|
|
|
}
|
|
|
|
|
2019-12-27 20:27:04 +01:00
|
|
|
prepare() {
|
2019-12-31 14:48:34 +01:00
|
|
|
cd "${srcdir}/FreeCAD"
|
2019-12-27 20:27:04 +01:00
|
|
|
# fix a build error
|
2019-12-31 14:48:34 +01:00
|
|
|
#curl -L "https://github.com/FreeCAD/FreeCAD/pull/2842/commits/095984fce44931a4c8e2ace269d45a62640fbfb4.patch" | patch -p1
|
2019-12-27 20:27:04 +01:00
|
|
|
}
|
|
|
|
|
2015-06-30 09:40:28 +02:00
|
|
|
build() {
|
2019-12-31 14:48:34 +01:00
|
|
|
cd "${srcdir}/FreeCAD"
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2019-10-20 08:53:10 +02:00
|
|
|
cmake \
|
2019-04-03 19:14:00 +02:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr/lib/freecad" \
|
2019-08-22 20:36:39 +02:00
|
|
|
-DCMAKE_INSTALL_DATAROOTDIR="/usr/share" \
|
2019-04-03 19:14:00 +02:00
|
|
|
-DCMAKE_INSTALL_DOCDIR="/usr/share/freecad/doc" \
|
|
|
|
-DFREECAD_USE_OCC_VARIANT="Official Version" \
|
|
|
|
-DBUILD_QT5=ON \
|
|
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
2019-10-20 08:53:10 +02:00
|
|
|
.
|
2017-03-29 14:32:08 +02:00
|
|
|
make
|
2015-06-30 09:40:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-12-31 14:48:34 +01:00
|
|
|
cd "${srcdir}/FreeCAD"
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2017-03-30 22:21:50 +02:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2019-04-03 19:14:00 +02:00
|
|
|
|
2019-08-22 20:36:39 +02:00
|
|
|
local bin="FreeCAD"
|
|
|
|
local bin_cmd="FreeCADCmd"
|
2017-03-29 14:32:08 +02:00
|
|
|
# Symlink binaries to /usr/bin.
|
2017-03-30 22:21:50 +02:00
|
|
|
mkdir -p "${pkgdir}/usr/bin"
|
2019-04-03 19:14:00 +02:00
|
|
|
ln -s "/usr/lib/freecad/bin/${bin}" "${pkgdir}/usr/bin/${bin}"
|
|
|
|
ln -s "/usr/lib/freecad/bin/${bin_cmd}" "${pkgdir}/usr/bin/${bin_cmd}"
|
|
|
|
# Lowercase aliases for convenience.
|
2017-03-30 22:21:50 +02:00
|
|
|
ln -s "/usr/bin/${bin}" "${pkgdir}/usr/bin/${bin,,}"
|
|
|
|
ln -s "/usr/bin/${bin_cmd}" "${pkgdir}/usr/bin/${bin_cmd,,}"
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2019-08-22 20:36:39 +02:00
|
|
|
# do we actually need this line?
|
|
|
|
echo "Path=/usr/lib/freecad" >> "${pkgdir}/usr/share/applications/org.freecadweb.FreeCAD.desktop"
|
2015-06-30 09:40:28 +02:00
|
|
|
}
|