summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2fb093eedfae0fedb03bc705a369974eb8d38bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: M0Rf30
# Contributor: carlsagan12

pkgbase=dakota
pkgname=dakota
pkgver=6.8
pkgrel=1
pkgdesc="A flexible, extensible interface between analysis codes and iterative systems analysis methods"
arch=(i686 x86_64)
url="https://dakota.sandia.gov/"
license=('LGPL')
depends=('boost' 'cddlib' 'icu' 'lapack' 'openmotif' 'tinyxml')
makedepends=('cmake' 'gcc-fortran' 'python2')
options=(!strip)
_filename=$pkgname-$pkgver-release-public.src-UI
_srcname=$pkgname-$pkgver-release-public.src-UI
source=("https://dakota.sandia.gov/sites/default/files/distributions/public/${_filename}.tar.gz")

build() {
  cd "$srcdir/${_filename}"
  if [ ! -d build ]; then
    mkdir build
  fi  
  cd build
  cmake .. -Wno-dev -DPYTHON_EXECUTABLE=/usr/bin/python2 \
                    -DCMAKE_INSTALL_PREFIX=/usr \
                    -DDAKOTA_F90=OFF \
		    -DCMAKE_CXX_FLAGS="-fpermissive"
  make -j4
  
}

package() {
  cd $srcdir/${_filename}
  cd build
  make DESTDIR=$pkgdir install
  rm $pkgdir/usr/include/{cblas.h,tinystr.h,tinyxml.h}
  rm $pkgdir/usr/lib/libtinyxml.so
  rm -rf $pkgdir/usr/examples
  rm $pkgdir/usr/include/menu.h
  rm $pkgdir/usr/include/cdd.h
  rm $pkgdir/usr/include/cddmp.h
  rm $pkgdir/usr/include/cddtypes.h
  rm $pkgdir/usr/include/setoper.h

}

md5sums=('85375e8c4df406fe017beda63ab28215')