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=('eba53d1b3f6e345632bb09a7b752ec7ced3d63ec5153a848380f3880c5d61889')
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}