# $Id: PKGBUILD 197080 2013-10-21 16:11:19Z andrea $ # Maintainer: Andrea Scarpino pkgname=wcslib pkgver=4.19 pkgrel=1 pkgdesc="A C library that implements the 'World Coordinate System' (WCS) standard in FITS" arch=('i686' 'x86_64' 'mips64el') url="http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/" license=('GPL3') depends=('cfitsio') makedepends=('gcc-fortran') source=("ftp://ftp.atnf.csiro.au/pub/software/${pkgname}/${pkgname}.tar.bz2") md5sums=('79d47ab10dfde08d91c0e6184cf73bda') build() { cd $pkgname-$pkgver ./configure --prefix=/usr \ --without-pgplot make } # Fails on i686 #check() { # cd $pkgname-$pkgver # make -k check #} package() { # Fix install on i686 install -d "${pkgdir}"/usr/include/${pkgname}-${pkgver} cd $pkgname-$pkgver make -j1 DESTDIR="$pkgdir/" install # 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/}} }