[arch-commits] Commit in python-plyvel/repos (4 files)
Felix Yan
fyan at archlinux.org
Tue Oct 27 07:07:32 UTC 2015
Date: Tuesday, October 27, 2015 @ 08:07:32
Author: fyan
Revision: 145074
archrelease: copy trunk to community-i686, community-x86_64
Added:
python-plyvel/repos/community-i686/
python-plyvel/repos/community-i686/PKGBUILD
(from rev 145073, python-plyvel/trunk/PKGBUILD)
python-plyvel/repos/community-x86_64/
python-plyvel/repos/community-x86_64/PKGBUILD
(from rev 145073, python-plyvel/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 116 insertions(+)
Copied: python-plyvel/repos/community-i686/PKGBUILD (from rev 145073, python-plyvel/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-10-27 07:07:32 UTC (rev 145074)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgname=(python-plyvel python2-plyvel)
+pkgver=0.9
+pkgrel=1
+pkgdesc="A fast and feature-rich Python interface to LevelDB"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="https://github.com/wbolster/plyvel"
+makedepends=('cython' 'cython2' 'python-setuptools' 'python2-setuptools' 'leveldb')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=(https://pypi.python.org/packages/source/p/plyvel/plyvel-$pkgver.tar.gz)
+sha256sums=('587d93681ae44936ae086b4b45486eb302e3853ba5af149aac3be9e9713998e9')
+
+prepare() {
+ # Shipped egg-info has wrong permission etc
+ (cd plyvel-$pkgver; make clean)
+
+ cp -a plyvel-$pkgver{,-py2}
+
+ sed -i 's/cython/cython2/' plyvel-$pkgver-py2/Makefile
+}
+
+build() {
+ cd "$srcdir/plyvel-$pkgver"
+ make cython
+ python setup.py build
+
+ cd "$srcdir/plyvel-$pkgver-py2"
+ make cython2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/plyvel-$pkgver"
+ python setup.py ptr
+
+ cd "$srcdir/plyvel-$pkgver-py2"
+ python2 setup.py ptr
+}
+
+package_python-plyvel() {
+ depends=('leveldb' 'python')
+
+ cd "$srcdir/plyvel-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+}
+
+package_python2-plyvel() {
+ depends=('leveldb' 'python2')
+
+ cd "$srcdir/plyvel-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+}
Copied: python-plyvel/repos/community-x86_64/PKGBUILD (from rev 145073, python-plyvel/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-10-27 07:07:32 UTC (rev 145074)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgname=(python-plyvel python2-plyvel)
+pkgver=0.9
+pkgrel=1
+pkgdesc="A fast and feature-rich Python interface to LevelDB"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="https://github.com/wbolster/plyvel"
+makedepends=('cython' 'cython2' 'python-setuptools' 'python2-setuptools' 'leveldb')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=(https://pypi.python.org/packages/source/p/plyvel/plyvel-$pkgver.tar.gz)
+sha256sums=('587d93681ae44936ae086b4b45486eb302e3853ba5af149aac3be9e9713998e9')
+
+prepare() {
+ # Shipped egg-info has wrong permission etc
+ (cd plyvel-$pkgver; make clean)
+
+ cp -a plyvel-$pkgver{,-py2}
+
+ sed -i 's/cython/cython2/' plyvel-$pkgver-py2/Makefile
+}
+
+build() {
+ cd "$srcdir/plyvel-$pkgver"
+ make cython
+ python setup.py build
+
+ cd "$srcdir/plyvel-$pkgver-py2"
+ make cython2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/plyvel-$pkgver"
+ python setup.py ptr
+
+ cd "$srcdir/plyvel-$pkgver-py2"
+ python2 setup.py ptr
+}
+
+package_python-plyvel() {
+ depends=('leveldb' 'python')
+
+ cd "$srcdir/plyvel-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+}
+
+package_python2-plyvel() {
+ depends=('leveldb' 'python2')
+
+ cd "$srcdir/plyvel-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+}
More information about the arch-commits
mailing list