summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Seguinot2019-01-22 12:51:47 +0900
committerJulien Seguinot2019-01-22 12:51:47 +0900
commit6949e316fce3181ab8dd9843990cd3283db4de4e (patch)
treeffa60d8c07f71b6609c6de0e643854ab7c5b2a0d
downloadaur-6949e316fce3181ab8dd9843990cd3283db4de4e.tar.gz
Initial commit.
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD26
-rw-r--r--README.rst7
4 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e68e7003dca
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = pism
+ pkgdesc = Parallel Ice Sheet Model (PISM)
+ pkgver = 1.1
+ pkgrel = 1
+ url = http://www.pism-docs.org/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = gcc
+ makedepends = cmake>=3.1
+ depends = fftw>=3.1
+ depends = gsl>=1.15
+ depends = netcdf
+ depends = openmpi
+ depends = petsc>=3.5
+ depends = proj
+ depends = udunits
+ source = https://github.com/pism/pism/archive/v1.1.tar.gz
+ md5sums = c8caa9e70ca44b179da0a25d0e65832b
+
+pkgname = pism
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f52b2f5a994
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar.xz
+*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e0da58ffe73
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}
diff --git a/README.rst b/README.rst
new file mode 100644
index 00000000000..0cb1f585848
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,7 @@
+PISM PKGBUILD
+=============
+
+Arch_ package build script for the Parallel Ice Sheet Model (PISM_).
+
+.. _Arch: https://www.archlinux.org/
+.. _PISM: http://www.pism-docs.org/