Commit 168aecd4 authored by Luca Giambonini's avatar Luca Giambonini

cfitsio 3450

parent 225e5d2c
Pipeline #1090 passed with stages
in 2 minutes and 21 seconds
# Platform Packages for Chakra, part of chakra-project.org
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# contributor: Phil Miller <philm[at]chakra-project[dog]org>
pkgname=cfitsio
pkgver=3310
pkgver=3450
pkgrel=1
pkgdesc="A library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format."
arch=('x86_64')
url="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
license=('GPL2')
depends=('glibc')
makedepends=('pkgconfig')
options=('!libtool')
source=(ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/${pkgname}${pkgver}.tar.gz)
md5sums=('75b6411751c7f308d45b281b7beb92d6')
pkgdesc="A library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format"
arch=(x86_64)
url="http://heasarc.gsfc.nasa.gov/fitsio/"
license=(custom)
depends=(curl)
source=("ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/${pkgname}${pkgver/./}.tar.gz")
sha256sums=('bf6012dbe668ecb22c399c4b7b2814557ee282c74a7d5dc704eb17c30d9fb92e')
build() {
cd "${srcdir}"/${pkgname}
./configure --prefix=/usr
cd $pkgname
./configure --prefix=/usr --enable-reentrant
make shared
make utils
}
check() {
cd $pkgname
LD_LIBRARY_PATH=. ./testprog > testprog.lis
[[ -z $(diff testprog.lis testprog.out) ]] || return 1
[[ -z $(cmp testprog.fit testprog.std) ]] || return 1
}
package() {
cd "${srcdir}"/${pkgname}
make DESTDIR="${pkgdir}" install
cd $pkgname
make DESTDIR="$pkgdir" install
install -D -m644 License.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment