[arch-commits] Commit in python-blosc/repos (4 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Sat Nov 21 17:33:22 UTC 2015


    Date: Saturday, November 21, 2015 @ 18:33:22
  Author: aginiewicz
Revision: 147341

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

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

---------------------------+
 community-i686/PKGBUILD   |   58 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   58 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 116 insertions(+)

Copied: python-blosc/repos/community-i686/PKGBUILD (from rev 147340, python-blosc/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-11-21 17:33:22 UTC (rev 147341)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-blosc
+pkgname=('python2-blosc' 'python-blosc')
+pkgver=1.2.8
+pkgrel=1
+pkgdesc="A Python wrapper for the extremely fast Blosc compression library"
+arch=('i686' 'x86_64')
+url="http://python-blosc.blosc.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'blosc')
+source=("https://pypi.python.org/packages/source/b/blosc/blosc-${pkgver}.tar.gz")
+md5sums=('d7f505adefd46fbdb50c7b608d5cbdf6')
+
+prepare() {
+  cd "$srcdir"
+  cp -a blosc-${pkgver} blosc-py2-${pkgver}
+  cd blosc-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"/blosc-py2-${pkgver}
+  python2 setup.py build_ext --inplace --blosc=/usr
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/blosc-${pkgver}
+  python setup.py build_ext --inplace --blosc=/usr
+  python setup.py build
+}
+
+package_python2-blosc() {
+  depends=('python2' 'blosc')
+
+  cd "$srcdir"/blosc-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')
+
+  cd "$srcdir"/blosc-${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 147340, python-blosc/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-11-21 17:33:22 UTC (rev 147341)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-blosc
+pkgname=('python2-blosc' 'python-blosc')
+pkgver=1.2.8
+pkgrel=1
+pkgdesc="A Python wrapper for the extremely fast Blosc compression library"
+arch=('i686' 'x86_64')
+url="http://python-blosc.blosc.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'blosc')
+source=("https://pypi.python.org/packages/source/b/blosc/blosc-${pkgver}.tar.gz")
+md5sums=('d7f505adefd46fbdb50c7b608d5cbdf6')
+
+prepare() {
+  cd "$srcdir"
+  cp -a blosc-${pkgver} blosc-py2-${pkgver}
+  cd blosc-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"/blosc-py2-${pkgver}
+  python2 setup.py build_ext --inplace --blosc=/usr
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/blosc-${pkgver}
+  python setup.py build_ext --inplace --blosc=/usr
+  python setup.py build
+}
+
+package_python2-blosc() {
+  depends=('python2' 'blosc')
+
+  cd "$srcdir"/blosc-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')
+
+  cd "$srcdir"/blosc-${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