archrelease: copy trunk to community-any
[ArchLinux/community.git] / wcslib / trunk / PKGBUILD
blobe1e94d8860effeab354758f17f9ec93cf8a368fb
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=wcslib
5 pkgver=7.12
6 pkgrel=2
7 pkgdesc="A C library that implements the 'World Coordinate System' (WCS) standard in FITS"
8 arch=(x86_64)
9 url='https://www.atnf.csiro.au/people/Mark.Calabretta/WCS/'
10 license=(GPL3)
11 depends=(cfitsio)
12 makedepends=(gcc-fortran)
13 source=(ftp://ftp.atnf.csiro.au/pub/software/$pkgname/$pkgname-$pkgver.tar.bz2)
14 sha256sums=('9cf8de50e109a97fa04511d4111e8d14bd0a44077132acf73e6cf0029fe96bd4')
16 build() {
17   cd $pkgname-$pkgver
19   export CFLAGS+=" -ffat-lto-objects"
20   ./configure --prefix=/usr --without-pgplot
21   make
24 package() {
25   cd $pkgname-$pkgver
26   make DESTDIR="$pkgdir" install
28   # Fix wrong permissions
29   chmod g=rx,-s "$pkgdir"/usr/{bin/,/lib/{,pkgconfig},share/man/man1/}
30   chmod -s "$pkgdir"/usr/{include/wcslib-$pkgver/,share/doc/wcslib-$pkgver/{,html/}}