summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32813ac666cfb0ffddcf0c7b117fc0a86351f2ad (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
# Maintainer : Jay Tsung<int8@foxmail.com>
# Contributor: <aur@entropy-collector.net>
pkgname=libradtran
_pkgname=libRadtran
pkgver=2.0.4
pkgrel=1
pkgdesc="library for radiative transfer"
arch=('x86_64')
url="http://www.libradtran.org"
license=('GPL')
depends=('netcdf'
         'gsl')
makedepends=('python2'
             'gcc-fortran')
optdepends=('perl: run the tests and some of the tools')
source=("http://www.libradtran.org/download/$_pkgname-$pkgver.tar.gz"
        "$_pkgname-$pkgver.patch")
sha256sums=('eb840e00f2b59648e77775df83d8ae2337880cec155d145228cd65365e3c816f'
            'a6207444d9ae8bc47f5150ed318bd43fc8a6a95005792e1b919d9605d3c34ce2')

prepare() {
	cd "$_pkgname-$pkgver"
	find -name .depend -delete
	patch -p1 -i "$srcdir/$_pkgname-$pkgver.patch"
}

build() {
	cd "$_pkgname-$pkgver"
	./configure --prefix=/usr
	make
}

package() {
	cd "$_pkgname-$pkgver"
	make prefix="$pkgdir/usr/" install
}