[arch-commits] Commit in python-astropy (5 files)

Antonio Rojas arojas at archlinux.org
Sat Nov 21 19:05:22 UTC 2015


    Date: Saturday, November 21, 2015 @ 20:05:21
  Author: arojas
Revision: 147345

archrelease: copy trunk to community-i686, community-x86_64

Added:
  python-astropy/repos/
  python-astropy/repos/community-i686/
  python-astropy/repos/community-i686/PKGBUILD
    (from rev 147344, python-astropy/trunk/PKGBUILD)
  python-astropy/repos/community-x86_64/
  python-astropy/repos/community-x86_64/PKGBUILD
    (from rev 147344, python-astropy/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   49 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   49 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

Copied: python-astropy/repos/community-i686/PKGBUILD (from rev 147344, python-astropy/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD	                        (rev 0)
+++ repos/community-i686/PKGBUILD	2015-11-21 19:05:21 UTC (rev 147345)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Médéric Boquien <mboquien at free.fr>
+
+pkgbase=python-astropy
+pkgname=(python-astropy python2-astropy)
+pkgver=1.0.6
+pkgrel=1
+pkgdesc="A community python library for astronomy"
+arch=(i686 x86_64)
+url="http://www.astropy.org/"
+license=(BSD)
+makedepends=(cython cython2 python-scipy python2-scipy python2-h5py python-h5py cfitsio erfa)
+source=("http://pypi.python.org/packages/source/a/astropy/astropy-$pkgver.tar.gz")
+md5sums=('9012885c35a05573d2fa61f5df220c8d')
+
+prepare() {
+  cp -r astropy-$pkgver python2-astropy-$pkgver
+}
+
+build() {
+  cd astropy-$pkgver
+  python setup.py build --use-system-cfitsio --use-system-erfa --use-system-expat # --use-system-wcslib
+
+  cd ../python2-astropy-${pkgver}
+  python2 setup.py build --use-system-cfitsio --use-system-erfa --use-system-expat # --use-system-wcslib
+}
+
+package_python-astropy() {
+  depends=(python-scipy python-h5py cfitsio erfa)
+  cd astropy-$pkgver
+
+  install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ licenses/*
+  python setup.py install --offline --root="$pkgdir" --prefix=/usr --optimize=1
+}
+
+package_python2-astropy() {
+  depends=(python2-scipy python2-h5py cfitsio erfa)
+  cd python2-astropy-$pkgver
+
+  install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ licenses/*
+  python2 setup.py install --offline --root="$pkgdir" --prefix=/usr --optimize=1
+
+  for _bin in fitscheck fitsdiff fitsheader samp_hub volint wcslint fits2bitmap; do
+    mv "$pkgdir"/usr/bin/${_bin}{,2}
+  done
+}

Copied: python-astropy/repos/community-x86_64/PKGBUILD (from rev 147344, python-astropy/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2015-11-21 19:05:21 UTC (rev 147345)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Médéric Boquien <mboquien at free.fr>
+
+pkgbase=python-astropy
+pkgname=(python-astropy python2-astropy)
+pkgver=1.0.6
+pkgrel=1
+pkgdesc="A community python library for astronomy"
+arch=(i686 x86_64)
+url="http://www.astropy.org/"
+license=(BSD)
+makedepends=(cython cython2 python-scipy python2-scipy python2-h5py python-h5py cfitsio erfa)
+source=("http://pypi.python.org/packages/source/a/astropy/astropy-$pkgver.tar.gz")
+md5sums=('9012885c35a05573d2fa61f5df220c8d')
+
+prepare() {
+  cp -r astropy-$pkgver python2-astropy-$pkgver
+}
+
+build() {
+  cd astropy-$pkgver
+  python setup.py build --use-system-cfitsio --use-system-erfa --use-system-expat # --use-system-wcslib
+
+  cd ../python2-astropy-${pkgver}
+  python2 setup.py build --use-system-cfitsio --use-system-erfa --use-system-expat # --use-system-wcslib
+}
+
+package_python-astropy() {
+  depends=(python-scipy python-h5py cfitsio erfa)
+  cd astropy-$pkgver
+
+  install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ licenses/*
+  python setup.py install --offline --root="$pkgdir" --prefix=/usr --optimize=1
+}
+
+package_python2-astropy() {
+  depends=(python2-scipy python2-h5py cfitsio erfa)
+  cd python2-astropy-$pkgver
+
+  install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ licenses/*
+  python2 setup.py install --offline --root="$pkgdir" --prefix=/usr --optimize=1
+
+  for _bin in fitscheck fitsdiff fitsheader samp_hub volint wcslint fits2bitmap; do
+    mv "$pkgdir"/usr/bin/${_bin}{,2}
+  done
+}



More information about the arch-commits mailing list