blob: 437241f182b5cd5e212751c1e517e9bc4fd11d7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: CloverGit <clovergit@hotmail.com>
# Contributor: Michel Zou
pkgname=mingw-w64-cfitsio
pkgver=4.5.0
pkgrel=1
pkgdesc="'A library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format (mingw-w64)"
arch=('any')
url="https://heasarc.gsfc.nasa.gov/fitsio/"
license=(custom)
makedepends=('mingw-w64-cmake')
depends=('mingw-w64-zlib')
options=('!strip' '!buildflags' 'staticlibs')
source=(https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-$pkgver.tar.gz)
sha256sums=('e4854fc3365c1462e493aa586bfaa2f3d0bb8c20b75a524955db64c27427ce09')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd cfitsio-${pkgver}
}
build() {
cd cfitsio-${pkgver}
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake -DUSE_CURL=OFF ..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir/cfitsio-$pkgver/build-${_arch}"
make DESTDIR="${pkgdir}" install
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
# vim: set sw=2 ts=2 et:
|