41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer:
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
pkgname=cfitsio
|
|
pkgver=3.49
|
|
pkgrel=1.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 powerpc64le powerpc64 powerpc riscv64)
|
|
url="https://heasarc.gsfc.nasa.gov/fitsio/"
|
|
license=(custom)
|
|
depends=(curl)
|
|
source=("https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${pkgname}-${pkgver}.tar.gz")
|
|
sha256sums=('5b65a20d5c53494ec8f638267fca4a629836b7ac8dd0ef0266834eab270ed4b3')
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
./configure --prefix=/usr --enable-reentrant
|
|
make shared
|
|
make utils
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgname}-${pkgver}
|
|
LD_LIBRARY_PATH=. ./testprog > testprog.lis
|
|
[[ -z $(diff testprog.lis testprog.out) ]] || return 1
|
|
[[ -z $(cmp testprog.fit testprog.std) ]] || return 1
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -D -m644 License.txt \
|
|
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
# Fix conflicts with ccfits and smem
|
|
rm "$pkgdir"/usr/bin/{cookbook,smem,testprog}
|
|
}
|