summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 336e696cfc2b7b1a9a9bf3d9c1b1e9451ed8423d (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
46
47
48
49
# Maintainer:  Yigit Dallilar <yigit.dallilar@gmail.com>

pkgname=isis
pkgver=1.6.2_47
pkgrel=2
pkgdesc="ISIS is designed to facilitate the interpretation and analysis of high resolution X-ray spectra."
url="http://space.mit.edu/asc/isis/"
arch=('x86_64')
license=('GPL2')
depends=('slang' 'heasoft' 'pgplot' 'cfitsio')
makedepends=('gcc-fortran')
provides=()
conflicts=()
replaces=()
backup=()
source=("ftp://space.mit.edu/pub/cxc/ISIS/${pkgname}-${pkgver//_/-}.tar.gz")
sha1sums=('cfb8c55d41d856d02cc9d231ca1f29e3893256ea')
install="${pkgname}.install"

build() {

    _glibcver=$(pacman -Q glibc | cut -c7-10)

    HEADAS=/opt/heasoft/x86_64-pc-linux-gnu-libc${_glibcver}

    cd $srcdir/${pkgname}-${pkgver//_/-}
    ./configure --prefix=${pkgdir}/opt/${pkgname} --with-headas=$HEADAS
    make

}

check() {

    cd $srcdir/${pkgname}-${pkgver//_/-}
    make check

}

package() {
    
    cd $srcdir/${pkgname}-${pkgver//_/-}
    make install

    install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

}

# vim:set ts=4 sw=4 et: