blob: 4da7d3c14b36f26c79b30ab5534f9654af674ae8 (
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
|
# Maintainer: Yigit Dallilar <yigit.dallilar@gmail.com>
pkgname=heasoft
pkgver=6.21
pkgrel=2
pkgdesc="NASA high energy astrophysics library"
makedepends=("gcc" "glibc" "gcc-fortran" "perl")
depends=("ncurses" "libtinfo" "readline" "libxpm" )
optdepends=("lynx")
url="https://heasarc.gsfc.nasa.gov/docs/software/lheasoft/"
arch=('x86_64')
license=('NASA' 'GPL')
source=(http://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/release/${pkgname}-${pkgver}src_no_xspec_modeldata.tar.gz ${pkgname}-${pkgver}_nolynx.patch)
sha1sums=('3c55645feae3ddffc86d6c1b3c1b989e8a7d5d1b'
'c1d4940d1aa599bf3b8b61b3471ebf057869b517')
prepare() {
# lynx conflict with ncurses and openssl. For now left it out.
# lynx can be installed from official repo.
cd $srcdir/${pkgname}-${pkgver}
patch -Np1 -i ../${pkgname}-${pkgver}_nolynx.patch
}
build() {
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export FC=/usr/bin/gfortran
export PERL=/usr/bin/perl
cd $srcdir/${pkgname}-${pkgver}/BUILD_DIR
./configure --prefix=${pkgdir}/opt/${pkgname}-${pkgver}
make
}
package(){
cd $srcdir/${pkgname}-${pkgver}/BUILD_DIR
make install
}
|