2013-06-18 06:47:36 +08:00
|
|
|
pkgname=wcslib
|
2018-07-28 10:02:20 +08:00
|
|
|
pkgver=5.19
|
2013-06-18 06:47:36 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A C library that implements the 'World Coordinate System' (WCS) standard in FITS"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/"
|
|
|
|
license=('GPL3')
|
|
|
|
depends=('cfitsio')
|
|
|
|
makedepends=('gcc-fortran')
|
2018-07-28 10:02:20 +08:00
|
|
|
source=("ftp://ftp.atnf.csiro.au/pub/software/$pkgname/$pkgname-$pkgver.tar.bz2")
|
|
|
|
sha256sums=('670cb0e8253100ba3e239a576f3bd7b0bf48488125eb056f60fef5e0c19ac90a')
|
2013-06-18 06:47:36 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
|
2018-07-28 10:18:13 +08:00
|
|
|
./configure --prefix=/usr --without-pgplot
|
2013-06-18 06:47:36 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2018-07-28 10:18:13 +08:00
|
|
|
make DESTDIR="$pkgdir/" install -j1
|
2013-06-18 06:47:36 +08:00
|
|
|
|
|
|
|
# Fix wrong permissions
|
|
|
|
chmod g=rx,-s "${pkgdir}"/usr/{bin/,/lib/{,pkgconfig},share/man/man1/}
|
|
|
|
chmod -s "${pkgdir}"/usr/{include/wcslib-${pkgver}/,share/doc/wcslib-${pkgver}/{,html/}}
|
|
|
|
}
|