summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0da58ffe73ff700e98f3f801c2bbf5efe3ac5fb (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
# Maintainer: Julien Seguinot <seguinot@vaw.baug.ethz.ch>

pkgname=pism
pkgver=1.1
pkgrel=1
pkgdesc="Parallel Ice Sheet Model (PISM)"
arch=('i686' 'x86_64')
url="http://www.pism-docs.org/"
license=('GPL')
depends=('fftw>=3.1' 'gsl>=1.15' 'netcdf' 'openmpi' 'petsc>=3.5' 'proj' 'udunits')
makedepends=('gcc' 'cmake>=3.1')
optdepends=()  # FIXME proj is an optional dependence
source=("https://github.com/pism/$pkgname/archive/v$pkgver.tar.gz")
md5sums=('c8caa9e70ca44b179da0a25d0e65832b')

build() {
  mkdir -p "$pkgname-$pkgver/build"
  cd "$pkgname-$pkgver/build"
  CC=mpicc CXX=mpicxx PETSC_DIR=/opt/petsc/linux-c-opt PISM_INSTALL_PREFIX=/usr cmake .. -DPism_USE_PROJ4=Yes
  make -j 4
}

package() {
  cd "$pkgname-$pkgver/build"
  make DESTDIR="$pkgdir/" install
}