[arch-commits] Commit in cfitsio/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed May 22 15:13:04 UTC 2019
Date: Wednesday, May 22, 2019 @ 15:13:03
Author: arojas
Revision: 353836
Update to 3.47, use system LDFLAGS
Modified:
cfitsio/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-22 15:09:08 UTC (rev 353835)
+++ PKGBUILD 2019-05-22 15:13:03 UTC (rev 353836)
@@ -3,7 +3,7 @@
# Contributor: Tobias Powalowski <tpowa at archlinux.org>
pkgname=cfitsio
-pkgver=3.450
+pkgver=3.47
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)
@@ -10,11 +10,17 @@
url="https://heasarc.gsfc.nasa.gov/fitsio/"
license=(custom)
depends=(curl)
-source=("https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${pkgname}${pkgver/./}.tar.gz")
-sha256sums=('bf6012dbe668ecb22c399c4b7b2814557ee282c74a7d5dc704eb17c30d9fb92e')
+source=("https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/$pkgname-$pkgver.tar.gz")
+sha256sums=('418516f10ee1e0f1b520926eeca6b77ce639bed88804c7c545e74f26b3edf4ef')
+prepare() {
+ cd $pkgname-$pkgver
+ sed -e 's|LDFLAGS=.*|LDFLAGS="$LDFLAGS"|g' -i configure.in # Fix LDFLAGS
+ autoreconf -vi
+}
+
build() {
- cd $pkgname
+ cd $pkgname-$pkgver
./configure --prefix=/usr --enable-reentrant
make shared
make utils
@@ -21,7 +27,7 @@
}
check() {
- cd $pkgname
+ cd $pkgname-$pkgver
LD_LIBRARY_PATH=. ./testprog > testprog.lis
[[ -z $(diff testprog.lis testprog.out) ]] || return 1
[[ -z $(cmp testprog.fit testprog.std) ]] || return 1
@@ -28,7 +34,7 @@
}
package() {
- cd $pkgname
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -D -m644 License.txt \
More information about the arch-commits
mailing list