summaryrefslogtreecommitdiff
path: root/cfitsio/build.sh
blob: 699d66aa9f69c15e39854af95ac1962ead08a12a (plain) (blame)
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
#!/bin/bash
name=cfitsio
version=3.47
revision=0
sources=(
    "http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${name}-${version}.tar.gz"
)
build_depends=(
    "patch"
)
depends=(
    "curl"
)


function prepare() {
    tar xf ${name}-${version}.tar.gz
    cd ${name}-${version}
    patch -p0 -i ../0001-destdir.patch
}

function build() {
    ./configure --prefix=${_prefix}
    make -j${_maxjobs}
}

function package() {
    make install DESTDIR="${_pkgdir}"
}