# $Id: PKGBUILD 105313 2014-02-04 20:43:38Z jlichtblau $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: <clu>
# Contributor: Jose San Juan <sanjuan@tng.iac.es>

pkgname=ccfits
pkgver=2.4
pkgrel=4
pkgdesc="Object Oriented Interface to the CFITSIO Library"
arch=('i686' 'x86_64')
url="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/"
license=('custom')
depends=('cfitsio')
source=(http://heasarc.gsfc.nasa.gov/docs/software/fitsio/${pkgname}/CCfits-${pkgver}.tar.gz)
md5sums=('dd9a11d964590dd5f3fd5a3491b2c1ce')

build() {
  cd "${srcdir}"/CCfits

  ./configure --with-cfitsio-libdir=/usr/lib --prefix=/usr
  make 
}

package() {
  cd "${srcdir}"/CCfits

  make DESTDIR="${pkgdir}" install

#install license
  install -D -m644 License.txt "${pkgdir}/usr/share/licenses/$pkgname/License.txt"
}
