[arch-commits] Commit in python2-numpy/repos/community-x86_64 (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Thu Apr 28 18:14:57 UTC 2022


    Date: Thursday, April 28, 2022 @ 18:14:57
  Author: arojas
Revision: 1191686

archrelease: copy trunk to community-x86_64

Added:
  python2-numpy/repos/community-x86_64/PKGBUILD
    (from rev 1191685, python2-numpy/trunk/PKGBUILD)
Deleted:
  python2-numpy/repos/community-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-28 18:14:47 UTC (rev 1191685)
+++ PKGBUILD	2022-04-28 18:14:57 UTC (rev 1191686)
@@ -1,39 +0,0 @@
-# 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.6
-pkgrel=1
-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=('27344ae10c7e7fd222b34d1514aaccbb62d1322cc79bec28f5c1e8741eefbb6bc7664055e49ed4f08d5716ca93d4c997fb98bee26a19957543ab4f8c15cd41f7')
-
-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}
-}

Copied: python2-numpy/repos/community-x86_64/PKGBUILD (from rev 1191685, python2-numpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-28 18:14:57 UTC (rev 1191686)
@@ -0,0 +1,40 @@
+# 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.6
+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=('27344ae10c7e7fd222b34d1514aaccbb62d1322cc79bec28f5c1e8741eefbb6bc7664055e49ed4f08d5716ca93d4c997fb98bee26a19957543ab4f8c15cd41f7')
+
+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
+  CFLAGS+=" -ffat-lto-objects" \
+  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