aboutsummaryrefslogblamecommitdiffstats
path: root/community/cfitsio/APKBUILD
blob: 2d300d2e623425e9518faca34e69fa307fccf085 (plain) (tree)
1
2
3
4
5


                                                   

            












                                                                                                 



                                                                                  






























                                                            



                                                                                                                                                      
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=cfitsio
pkgver=4.0.0
pkgrel=0
pkgdesc="A library reading and writing data files in Flexible Image Transport System data format"
url="https://heasarc.gsfc.nasa.gov/fitsio/"
arch="all"
license="custom"
makedepends="
	bzip2-dev
	curl-dev
	gfortran
	"
subpackages="
	$pkgname-static
	$pkgname-dev
	"
source="
	https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-$pkgver.tar.gz
	10-OFF_T.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--with-bzip2 \
		--enable-reentrant \
		--enable-sse2 \
		--enable-ssse3 \
		--enable-hera
	make shared
	make utils
}

package() {
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/usr/share/licenses/cfitsio/
	cp License.txt "$pkgdir"/usr/share/licenses/cfitsio/

	# delete test/demo programs
	rm "$pkgdir"/usr/bin/testprog
	rm "$pkgdir"/usr/bin/cookbook

	# avoid conflicts with smem
	rm "$pkgdir"/usr/bin/smem
}

check() {
	LD_LIBRARY_PATH=. ./testprog > testprog.lis
	[[ -z $(diff testprog.lis testprog.out) ]]
	[[ -z $(cmp testprog.fit testprog.std) ]]
}
sha512sums="
a5b20bd6ad648450e99167f63813cc7523347aadfc9f85d2c0ed3ba7e4516b3bb6bc0851f209268f2cb045cdacc43a3da9e4506af4581f806ab9f4de248065fa  cfitsio-4.0.0.tar.gz
5b5a2f932e837a86ae4dd4cf035c2a0ee27c27b7f06f24375ef29312c8836f03d688c66e3cdf19b4617859f9845f602d13017a8564803408eec9d7f928ced6bc  10-OFF_T.patch
"