2016-09-22 14:53:49 +02:00
|
|
|
# Maintainer: Markus Hovorka <m.hovorka@live.de>
|
|
|
|
# Contributer: Christian Hesse <mail@eworm.de>
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2017-03-29 14:32:08 +02:00
|
|
|
_appname=freecad
|
|
|
|
pkgname="${_appname}-git"
|
2017-06-01 11:23:35 +02:00
|
|
|
pkgver=0.17pre.r4505.gbc6a52ee9
|
2017-03-18 00:51:10 +01:00
|
|
|
pkgrel=1
|
2016-09-22 14:53:49 +02:00
|
|
|
epoch=1
|
2015-06-30 09:40:28 +02:00
|
|
|
pkgdesc='A general purpose 3D CAD modeler - git checkout'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='http://www.freecadweb.org/'
|
|
|
|
license=('LGPL')
|
2017-03-18 00:51:10 +01:00
|
|
|
depends=('boost-libs' 'curl' 'hicolor-icon-theme' 'libspnav' 'opencascade7'
|
2017-03-18 00:54:49 +01:00
|
|
|
'med' 'xerces-c' 'python2-pivy' 'python2-pyside' 'qtwebkit'
|
2017-03-29 14:32:08 +02:00
|
|
|
'libtheora' 'shared-mime-info' 'vtk-qt4' 'jsoncpp' 'netgen-nogui-occ7')
|
2016-09-22 14:53:49 +02:00
|
|
|
makedepends=('git' 'boost' 'cmake' 'coin' 'python2-pyside-tools'
|
2017-03-18 00:54:49 +01:00
|
|
|
'desktop-file-utils' 'eigen' 'gcc-fortran' 'swig')
|
2016-09-22 14:53:49 +02:00
|
|
|
optdepends=('python2-matplotlib'
|
|
|
|
'pycollada-git: Create, edit and load COLLADA documents.')
|
2015-06-30 09:40:28 +02:00
|
|
|
provides=('freecad')
|
|
|
|
conflicts=('freecad')
|
2017-03-30 22:21:50 +02:00
|
|
|
source=("${pkgname}::git+https://github.com/FreeCAD/FreeCAD.git"
|
2016-09-22 14:53:49 +02:00
|
|
|
"freecad.desktop"
|
2017-06-01 11:23:35 +02:00
|
|
|
"freecad.xml")
|
2016-09-22 14:53:49 +02:00
|
|
|
md5sums=('SKIP'
|
2017-02-16 23:24:27 +01:00
|
|
|
'7e781d41e90a1c137930e47672996a52'
|
2017-06-01 11:23:35 +02:00
|
|
|
'c2f4154c8e4678825411de8e7fa54c6b')
|
2015-06-30 09:40:28 +02:00
|
|
|
|
|
|
|
pkgver() {
|
2017-03-30 22:21:50 +02:00
|
|
|
cd "${srcdir}/${pkgname}"
|
2017-03-29 14:32:08 +02:00
|
|
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/_//'
|
2015-06-30 09:40:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-03-30 22:21:50 +02:00
|
|
|
cd "${srcdir}/${pkgname}"
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2017-03-29 14:32:08 +02:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
2017-03-30 22:21:50 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX="/opt/${_appname}" \
|
|
|
|
-DOCC_INCLUDE_DIR="/opt/opencascade7/include/opencascade" \
|
|
|
|
-DOCC_LIBRARY_DIR="/opt/opencascade7/lib" \
|
|
|
|
-DVTK_DIR="/opt/vtk-qt4/lib/cmake/vtk-7.0" \
|
|
|
|
-DCMAKE_PREFIX_PATH="/opt/opencascade7" \
|
|
|
|
-DCMAKE_INCLUDE_PATH="/opt/opencascade7/include/opencascade" \
|
|
|
|
-DCMAKE_LIBRARY_PATH="/opt/opencascade7/lib" \
|
|
|
|
-DCMAKE_INSTALL_RPATH="/opt/opencascade7/lib;/opt/vtk-qt4/lib" \
|
|
|
|
-DPYTHON_EXECUTABLE="/usr/bin/python2" \
|
|
|
|
-DPYTHON_SUFFIX="-python2.7" \
|
|
|
|
-DPYTHON_BASENAME="-python2.7" \
|
|
|
|
-DPYSIDEUIC4BINARY="/usr/bin/python2-pyside-uic" \
|
2017-03-29 14:32:08 +02:00
|
|
|
-DBUILD_FEM_NETGEN=1
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2017-03-29 14:32:08 +02:00
|
|
|
make
|
2015-06-30 09:40:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-03-30 22:21:50 +02:00
|
|
|
cd "${srcdir}/${pkgname}"
|
2017-03-29 14:32:08 +02:00
|
|
|
local bin="FreeCAD"
|
|
|
|
local bin_cmd="FreeCADCmd"
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2017-03-30 22:21:50 +02:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2016-09-22 14:53:49 +02:00
|
|
|
|
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"
|
|
|
|
ln -s "/opt/${_appname}/bin/${bin}" "${pkgdir}/usr/bin/${bin}"
|
|
|
|
ln -s "/opt/${_appname}/bin/${bin_cmd}" "${pkgdir}/usr/bin/${bin_cmd}"
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2017-03-29 14:32:08 +02:00
|
|
|
# Lowercase aliases like the official arch package.
|
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
|
|
|
|
2017-03-29 14:32:08 +02:00
|
|
|
# Install pixmaps and desktop shortcut.
|
|
|
|
for i in 16 32 48 64; do
|
|
|
|
install -Dm644 "src/Gui/Icons/freecad-icon-${i}.png" \
|
2017-03-30 22:21:50 +02:00
|
|
|
"${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${_appname}.png"
|
2017-03-29 14:32:08 +02:00
|
|
|
done
|
|
|
|
install -Dm644 "src/Gui/Icons/freecad.svg" \
|
2017-03-30 22:21:50 +02:00
|
|
|
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_appname}.svg"
|
2017-03-29 14:32:08 +02:00
|
|
|
desktop-file-install \
|
2017-03-30 22:21:50 +02:00
|
|
|
--dir="${pkgdir}/usr/share/applications" "${srcdir}/${_appname}.desktop"
|
2015-06-30 09:40:28 +02:00
|
|
|
|
2017-03-29 14:32:08 +02:00
|
|
|
# Install mime info.
|
2017-03-30 22:21:50 +02:00
|
|
|
install -D -m644 "${srcdir}/${_appname}.xml" \
|
|
|
|
"${pkgdir}/usr/share/mime/packages/${_appname}.xml"
|
2015-06-30 09:40:28 +02:00
|
|
|
}
|