summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f951e428f2ce9e8f89a6eb1db0bd70c7dbdae3d (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
# Arch User repository PKGBUILD file
# Builds the fortran part of the shtools library
# Maintainer: Roelof Rietbroek <roelof@wobbly.earth>
pkgname=shtools-fortran
pkgver=4.7.1
pkgrel=1
pkgdesc="Tools for working with spherical harmonics"
arch=('any')
url="https://shtools.oca.eu"
license=('BSD 3-clause')
groups=()
depends=("fftw" "blas" "lapack")
makedepends=("gcc-fortran")
source=("https://github.com/SHTOOLS/SHTOOLS/archive/v$pkgver.tar.gz")
noextract=()
md5sums=('746934fcfaf18d6702bad98480a6aace')

validpgpkeys=()

prepare() {
    _startdir=${PWD}
   cd ${srcdir}/SHTOOLS-${pkgver}/
}

build() { 
    cd ${srcdir}/SHTOOLS-${pkgver}/
    make fortran 
    make fortran-mp 
    #make doc 
   cd ${_startdir}
}

check() {
    cd ${srcdir}/SHTOOLS-${pkgver}/
    make run-fortran-tests-no-timing
    cd ${_startdir}

}

package() {
    cd ${srcdir}/SHTOOLS-${pkgver}/
    make DESTDIR="$pkgdir/" PREFIX=usr/ install
    cd ${_startdir}
}