mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 02:34:37 +08:00
34 lines
865 B
Bash
34 lines
865 B
Bash
|
|
pkgname=cfitsio
|
|
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/fitsio/"
|
|
license=(custom)
|
|
depends=(curl)
|
|
source=("ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/${pkgname}${pkgver/./}.tar.gz")
|
|
sha256sums=('bf6012dbe668ecb22c399c4b7b2814557ee282c74a7d5dc704eb17c30d9fb92e')
|
|
|
|
build() {
|
|
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 $pkgname
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -D -m644 License.txt \
|
|
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|