summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8ec9b3b198c8bd0c619e22f5d4b6a41867ff7c2 (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
pkgrel=43
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/isis-${pkgver}-${pkgrel}.tar.gz")
sha1sums=('5b9e325de6420f36b67318e98457f9dd4a7dac33')
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}-${pkgrel}
    ./configure --prefix=${pkgdir}/opt/${pkgname} --with-headas=$HEADAS
    make

}

check() {

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

}

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

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

}

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