[arch-commits] Commit in python2-numpy (3 files)

Antonio Rojas arojas at archlinux.org
Wed Aug 28 08:14:03 UTC 2019


    Date: Wednesday, August 28, 2019 @ 08:14:02
  Author: arojas
Revision: 361314

archrelease: copy trunk to extra-x86_64

Added:
  python2-numpy/repos/
  python2-numpy/repos/extra-x86_64/
  python2-numpy/repos/extra-x86_64/PKGBUILD
    (from rev 361313, python2-numpy/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python2-numpy/repos/extra-x86_64/PKGBUILD (from rev 361313, python2-numpy/trunk/PKGBUILD)
===================================================================
--- repos/extra-x86_64/PKGBUILD	                        (rev 0)
+++ repos/extra-x86_64/PKGBUILD	2019-08-28 08:14:02 UTC (rev 361314)
@@ -0,0 +1,39 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> 
+
+pkgname=python2-numpy
+pkgver=1.16.4
+pkgrel=2
+pkgdesc="Scientific tools for Python 2"
+arch=('x86_64')
+license=('custom')
+url="https://www.numpy.org/"
+depends=('cblas' 'lapack' 'python2')
+optdepends=('openblas: faster linear algebra')
+makedepends=('python2-setuptools' 'gcc-fortran' 'cython2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz")
+sha512sums=('c8437e01a8c6c37787a8bf52f26d1adb273a6bb8f709f3cd92b427c63a1f772f9b2285b46321f2bd1a60a572797223d801aaed0fc2782bcdc7cbe39cd8c34c69')
+
+prepare() {
+  cd numpy-$pkgver
+  sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+      -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+      -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+      -i $(find . -name '*.py')
+}
+
+build() {
+  cd numpy-$pkgver
+  python2 setup.py build
+}
+
+package() {
+  cd numpy-$pkgver
+  python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+
+  install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/python2-numpy/"
+
+  mv "$pkgdir"/usr/bin/f2py{,2}
+}



More information about the arch-commits mailing list