[arch-commits] Commit in cfitsio/repos (4 files)
Andrea Scarpino
andrea at archlinux.org
Sat Jan 24 10:06:55 UTC 2015
Date: Saturday, January 24, 2015 @ 11:06:55
Author: andrea
Revision: 229696
archrelease: copy trunk to community-i686, community-x86_64
Added:
cfitsio/repos/community-i686/
cfitsio/repos/community-i686/PKGBUILD
(from rev 229695, cfitsio/trunk/PKGBUILD)
cfitsio/repos/community-x86_64/
cfitsio/repos/community-x86_64/PKGBUILD
(from rev 229695, cfitsio/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
Copied: cfitsio/repos/community-i686/PKGBUILD (from rev 229695, cfitsio/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-01-24 10:06:55 UTC (rev 229696)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=cfitsio
+pkgver=3.370
+pkgrel=3
+pkgdesc="A library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format"
+arch=('i686' 'x86_64')
+url="http://heasarc.gsfc.nasa.gov/fitsio/"
+license=('custom')
+depends=('glibc')
+source=("ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/${pkgname}${pkgver/./}.tar.gz")
+sha512sums=('97c820757513ac0c59c277b39b8f8a6d1cbc1b2d37ca8ee68d645533a37d25fcdba87e676eaaf3cfa557c34591e9476326d892e0f8c42d3e1372e1d6a4406d18')
+
+build() {
+ cd ${pkgname}
+ ./configure --prefix=/usr \
+ --enable-reentrant
+ make shared
+
+ # Build extra utils
+ make fpack
+ make funpack
+}
+
+check() {
+ cd ${pkgname}
+ make testprog
+ LD_LIBRARY_PATH=. ./testprog > testprog.lis
+ [[ -z $(diff testprog.lis testprog.out) ]] || return 1
+ [[ -z $(cmp testprog.fit testprog.std) ]] || return 1
+}
+
+package() {
+ cd ${pkgname}
+ make DESTDIR="${pkgdir}" install
+
+ install -d "${pkgdir}"/usr/bin
+ install -m755 {fpack,funpack} "${pkgdir}"/usr/bin/
+
+ install -D -m644 License.txt \
+ "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
Copied: cfitsio/repos/community-x86_64/PKGBUILD (from rev 229695, cfitsio/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-01-24 10:06:55 UTC (rev 229696)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=cfitsio
+pkgver=3.370
+pkgrel=3
+pkgdesc="A library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format"
+arch=('i686' 'x86_64')
+url="http://heasarc.gsfc.nasa.gov/fitsio/"
+license=('custom')
+depends=('glibc')
+source=("ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/${pkgname}${pkgver/./}.tar.gz")
+sha512sums=('97c820757513ac0c59c277b39b8f8a6d1cbc1b2d37ca8ee68d645533a37d25fcdba87e676eaaf3cfa557c34591e9476326d892e0f8c42d3e1372e1d6a4406d18')
+
+build() {
+ cd ${pkgname}
+ ./configure --prefix=/usr \
+ --enable-reentrant
+ make shared
+
+ # Build extra utils
+ make fpack
+ make funpack
+}
+
+check() {
+ cd ${pkgname}
+ make testprog
+ LD_LIBRARY_PATH=. ./testprog > testprog.lis
+ [[ -z $(diff testprog.lis testprog.out) ]] || return 1
+ [[ -z $(cmp testprog.fit testprog.std) ]] || return 1
+}
+
+package() {
+ cd ${pkgname}
+ make DESTDIR="${pkgdir}" install
+
+ install -d "${pkgdir}"/usr/bin
+ install -m755 {fpack,funpack} "${pkgdir}"/usr/bin/
+
+ install -D -m644 License.txt \
+ "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list