summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2018-11-18 23:35:18 +0100
committerbartus2018-11-18 23:35:18 +0100
commit70c25f39ddacdda4d6163879eaf5a87bee3fdf26 (patch)
tree55b8d2200438851e081837c1d9d863ce98ac0a2c
parentfeffeb65c2c9fb41fed8eee8c745b143df76e836 (diff)
downloadaur-70c25f39ddacdda4d6163879eaf5a87bee3fdf26.tar.gz
add missing submodule
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD20
2 files changed, 21 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f30ee49c120..6bcbf8e15f7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = chronoengine
pkgdesc = C++ library for physics simulation
pkgver = 3.0.0
- pkgrel = 2
+ pkgrel = 3
url = http://projectchrono.org/chronoengine/
arch = i686
arch = x86_64
@@ -19,7 +19,7 @@ pkgbase = chronoengine
makedepends = swig
makedepends = blaze
makedepends = cuda
- makedepends = opencascade7
+ makedepends = opencascade
depends = openmpi
depends = boost-libs
optdepends = irrlicht: Runtime visualization with Irrlicht.
@@ -28,12 +28,16 @@ pkgbase = chronoengine
optdepends = freeglut: Runtime visualization with OpenGL.
optdepends = python: Python bindings
optdepends = nvidia-utils: CUDA support in PARALLEL module
- optdepends = opencascade7: add 3D CAD file support (STEP format)
+ optdepends = opencascade: add 3D CAD file support (STEP format)
source = chronoengine::git+https://github.com/projectchrono/chrono.git
+ source = git+https://github.com/google/benchmark.git
+ source = git+https://github.com/google/googletest.git
source = chronoengine.sh
source = glm.patch
source = opencascade.patch
sha1sums = SKIP
+ sha1sums = SKIP
+ sha1sums = SKIP
sha1sums = 8d8cb3fc9324e50cec8f5bb5dbf8a78817a32b81
sha1sums = 277e41186ff356fcc8c15153453d17ea61eca56a
sha1sums = 884f16fc90b8d084d1a67672bf59493b867a71f0
diff --git a/PKGBUILD b/PKGBUILD
index 4a22ed73d0a..1689c85d09c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=chronoengine
pkgver=3.0.0
#fragment="#tag=${pkgver}"
-pkgrel=2
+pkgrel=3
pkgdesc="C++ library for physics simulation"
license=('custom')
arch=('i686' 'x86_64')
@@ -13,7 +13,7 @@ makedepends=(cmake git boost glm glew glfw irrlicht glut openmpi)
makedepends+=(python swig) # -DENABLE_MODULE_PYTHON requirement
makedepends+=(blaze) # -DENABLE_MODULE_PARALLEL=ON requirement
makedepends+=(cuda) # -DENABLE_MODULE_PARALLEL=ON optional
-makedepends+=(opencascade7) # -DENABLE_MODULE_CASCADE=ON required (version<=7.2)
+makedepends+=(opencascade) # -DENABLE_MODULE_CASCADE=ON required (version<=7.2)
#makedepends+=(intel-mkl) # -DENABLE_MODULE_MKL=ON requirement
optdepends=(
"irrlicht: Runtime visualization with Irrlicht."
@@ -22,7 +22,7 @@ optdepends=(
"freeglut: Runtime visualization with OpenGL."
"python: Python bindings"
"nvidia-utils: CUDA support in PARALLEL module"
- "opencascade7: add 3D CAD file support (STEP format)"
+ "opencascade: add 3D CAD file support (STEP format)"
)
#optdepends+=("intel-mkl: This library is currently used in Chrono for its parallel direct solver (Pardiso)")
#options=(!buildflags) # discard arch buildflags as -fno-plt is not supported by gcc5 (cuda host compiler)
@@ -31,14 +31,18 @@ optdepends=(
#CFLAGS=${CXXFLAGS}
source=("${pkgname}::git+https://github.com/projectchrono/chrono.git${fragment}"
+ "git+https://github.com/google/benchmark.git"
+ "git+https://github.com/google/googletest.git"
"chronoengine.sh"
"glm.patch"
"opencascade.patch"
)
sha1sums=('SKIP'
- '8d8cb3fc9324e50cec8f5bb5dbf8a78817a32b81'
- '277e41186ff356fcc8c15153453d17ea61eca56a'
- '884f16fc90b8d084d1a67672bf59493b867a71f0')
+ 'SKIP'
+ 'SKIP'
+ '8d8cb3fc9324e50cec8f5bb5dbf8a78817a32b81'
+ '277e41186ff356fcc8c15153453d17ea61eca56a'
+ '884f16fc90b8d084d1a67672bf59493b867a71f0')
CMAKE_FLAGS=( -DENABLE_MODULE_POSTPROCESS=ON
-DENABLE_MODULE_VEHICLE=ON
@@ -64,6 +68,10 @@ CMAKE_FLAGS=( -DENABLE_MODULE_POSTPROCESS=ON
prepare() {
cd ${pkgname}
+ git submodule init
+ git config submodule.src/chrono_thirdparty/googlebenchmark.url ${srcdir}/benchmark
+ git config submodule.src/chrono_thirdparty/googletest.url ${srcdir}/googletest
+ git submodule update
files=($(find -name CMakeLists.txt))
files+=($(find -name \*.cmake\*))
sed -i 's/lib64/lib/' ${files[@]}