summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMarkus Hovorka2017-03-18 00:51:10 +0100
committerMarkus Hovorka2017-03-18 00:51:21 +0100
commit111a934dbc1340c13824f5570dcdf7c3853ad69c (patch)
tree1c74cfb366ddec93da0aa80aac5ada188fe1396d /PKGBUILD
parent7f76fdd333e49c7b10d4f94e5f3000d7545d2561 (diff)
downloadaur-111a934dbc1340c13824f5570dcdf7c3853ad69c.tar.gz
Use opencascade7
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 15 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4f3b2fa0590..6be987cd11f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
# Contributer: Christian Hesse <mail@eworm.de>
pkgname=freecad-git
-pkgver=0.17pre.r3401.g99fa203f3
-pkgrel=2
+pkgver=0.17pre.r3794.g4f165179e
+pkgrel=1
epoch=1
pkgdesc='A general purpose 3D CAD modeler - git checkout'
arch=('i686' 'x86_64')
url='http://www.freecadweb.org/'
license=('LGPL')
-depends=('boost-libs' 'curl' 'hicolor-icon-theme' 'libspnav' 'opencascade'
+depends=('boost-libs' 'curl' 'hicolor-icon-theme' 'libspnav' 'opencascade7'
'med' 'xerces-c' 'python2-pivy' 'python2-pyside'
'libtheora' 'shared-mime-info' 'vtk-qt4' 'jsoncpp')
makedepends=('git' 'boost' 'cmake' 'coin' 'python2-pyside-tools'
@@ -21,11 +21,13 @@ conflicts=('freecad')
source=("$pkgname::git+https://github.com/FreeCAD/FreeCAD.git"
"freecad.desktop"
"freecad.xml"
- "fem-rpath.patch")
+ "rpath.patch"
+ "fix-occ-search.patch")
md5sums=('SKIP'
'7e781d41e90a1c137930e47672996a52'
'c2f4154c8e4678825411de8e7fa54c6b'
- '99a41687a9ba980eea86aee4345d9a1d')
+ 'b313a990287bce43dc698affae35d58d'
+ '5a7beefb78ef73241b0e421fec67f4db')
pkgver() {
cd "$pkgname"
@@ -34,7 +36,8 @@ pkgver() {
prepare() {
cd "$srcdir/$pkgname"
- patch -p1 -i "$srcdir/fem-rpath.patch"
+ patch -Np1 -i "$srcdir/rpath.patch"
+ patch -Np1 -i "$srcdir/fix-occ-search.patch"
}
build() {
@@ -42,9 +45,13 @@ build() {
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:PATH="/opt/freecad" \
- -DOCC_INCLUDE_DIR:PATH=/opt/opencascade/inc \
- -DOCC_LIBRARY_DIR:PATH=/opt/opencascade/lib \
+ -DOCC_INCLUDE_DIR:PATH=/opt/opencascade7/include/opencascade \
+ -DOCC_LIBRARY_DIR:PATH=/opt/opencascade7/lib \
-DVTK_DIR:PATH=/opt/vtk-qt4/lib/cmake/vtk-7.0 \
+ -DCMAKE_PREFIX_PATH=/opt/opencascade7 \
+ -DCMAKE_INCLUDE_PATH:PATH=/opt/opencascade7/include/opencascade \
+ -DCMAKE_LIBRARY_PATH:PATH=/opt/opencascade7/lib \
+ -DCMAKE_INSTALL_RPATH=/opt/opencascade7/lib:/opt/vtk-qt4/lib \
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 \
-DPYTHON_SUFFIX=-python2.7 \
-DPYTHON_BASENAME=-python2.7 \