[arch-commits] Commit in python-blosc/repos/community-x86_64 (PKGBUILD PKGBUILD)

Andrzej Giniewicz aginiewicz at archlinux.org
Tue Apr 2 10:55:29 UTC 2019


    Date: Tuesday, April 2, 2019 @ 10:55:29
  Author: aginiewicz
Revision: 447541

archrelease: copy trunk to community-x86_64

Added:
  python-blosc/repos/community-x86_64/PKGBUILD
    (from rev 447540, python-blosc/trunk/PKGBUILD)
Deleted:
  python-blosc/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  122 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 63 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-02 10:55:21 UTC (rev 447540)
+++ PKGBUILD	2019-04-02 10:55:29 UTC (rev 447541)
@@ -1,59 +0,0 @@
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-
-pkgbase=python-blosc
-pkgname=('python2-blosc' 'python-blosc')
-pkgver=1.7.0
-pkgrel=1
-pkgdesc="A Python wrapper for the extremely fast Blosc compression library"
-arch=('x86_64')
-url="http://python-blosc.blosc.org/"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'blosc')
-source=("https://github.com/Blosc/python-blosc/archive/v${pkgver}.tar.gz")
-sha1sums=('4a3ceb7ce7fa412432855b22894f865e18dd34e0')
-
-prepare() {
-  cd "$srcdir"
-  cp -a ${pkgbase}-${pkgver} ${pkgbase}-py2-${pkgver}
-  cd ${pkgbase}-py2-${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() {
-  msg "Building Python2"
-  cd "$srcdir"/${pkgbase}-py2-${pkgver}
-  python2 setup.py build_ext --inplace --blosc=/usr
-  python2 setup.py build
-
-  msg "Building Python3"
-  cd "$srcdir"/${pkgbase}-${pkgver}
-  python setup.py build_ext --inplace --blosc=/usr
-  python setup.py build
-}
-
-package_python2-blosc() {
-  depends=('python2' 'blosc')
-  optdepends=('python2-numpy: for tests and benchmarks')
-
-  cd "$srcdir"/${pkgbase}-py2-${pkgver}
-
-  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSES/PYTHON-BLOSC.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python-blosc() {
-  depends=('python' 'blosc')
-  optdepends=('python-numpy: for tests and benchmarks')
-
-  cd "$srcdir"/${pkgbase}-${pkgver}
-
-  python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSES/PYTHON-BLOSC.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-

Copied: python-blosc/repos/community-x86_64/PKGBUILD (from rev 447540, python-blosc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-04-02 10:55:29 UTC (rev 447541)
@@ -0,0 +1,63 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-blosc
+pkgname=('python2-blosc' 'python-blosc')
+pkgver=1.8.1
+pkgrel=1
+pkgdesc="A Python wrapper for the extremely fast Blosc compression library"
+arch=('x86_64')
+url="http://python-blosc.blosc.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'blosc')
+source=("https://github.com/Blosc/python-blosc/archive/v${pkgver}.tar.gz")
+sha256sums=('302ec8da715a2058f1e1bd3349cb5dd201c50270e99c04afed5ab0ae998507be')
+
+prepare() {
+  cd "$srcdir"
+  cp -a ${pkgbase}-${pkgver} ${pkgbase}-py2-${pkgver}
+  cd ${pkgbase}-py2-${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() {
+  export BLOSC_DIR=/usr
+
+  # "Building Python2"
+  cd "$srcdir"/${pkgbase}-py2-${pkgver}
+  python2 setup.py build_clib
+  python2 setup.py build_ext --inplace
+  python2 setup.py build
+
+  # "Building Python3"
+  cd "$srcdir"/${pkgbase}-${pkgver}
+  python setup.py build_clib
+  python setup.py build_ext --inplace
+  python setup.py build
+}
+
+package_python2-blosc() {
+  depends=('python2' 'blosc')
+  optdepends=('python2-numpy: for tests and benchmarks')
+
+  cd "$srcdir"/${pkgbase}-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSES/PYTHON-BLOSC.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-blosc() {
+  depends=('python' 'blosc')
+  optdepends=('python-numpy: for tests and benchmarks')
+
+  cd "$srcdir"/${pkgbase}-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSES/PYTHON-BLOSC.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+


More information about the arch-commits mailing list