void-packages/srcpkgs/cfitsio/template

32 lines
843 B
Bash

# Template file for 'cfitsio'
pkgname=cfitsio
version=4.5.0
revision=1
build_style=gnu-configure
configure_args="--enable-reentrant"
makedepends="libcurl-devel"
short_desc="Library for reading and writing data files in FITS data format"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="custom:NASA license"
homepage="https://heasarc.gsfc.nasa.gov/fitsio/"
distfiles="http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${pkgname}-${version}.tar.gz"
checksum=e4854fc3365c1462e493aa586bfaa2f3d0bb8c20b75a524955db64c27427ce09
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" gcc-fortran"
fi
post_install() {
vlicense licenses/License.txt
}
cfitsio-devel_package() {
depends="cfitsio-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}