1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
9 pkgdesc='A library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format'
11 url='https://heasarc.gsfc.nasa.gov/fitsio/'
14 source=(https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/$pkgname-$pkgver.tar.gz)
15 sha256sums=('b367c695d2831958e7166921c3b356d5dfa51b1ecee505b97416ba39d1b6c17a')
19 sed -e 's|LDFLAGS=.*|LDFLAGS="$LDFLAGS"|g' -i configure.in # Fix LDFLAGS
25 ./configure --prefix=/usr --enable-reentrant
32 LD_LIBRARY_PATH=. ./testprog > testprog.lis
33 [[ -z $(diff testprog.lis testprog.out) ]] || return 1
34 [[ -z $(cmp testprog.fit testprog.std) ]] || return 1
39 make DESTDIR="$pkgdir" install
41 install -D -m644 License.txt \
42 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
44 # Fix conflicts with ccfits and smem
45 rm "$pkgdir"/usr/bin/{cookbook,smem,testprog}