[arch-commits] Commit in python-cffi/repos (6 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 10:55:11 UTC 2015
Date: Saturday, September 19, 2015 @ 12:55:11
Author: fyan
Revision: 246605
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
python-cffi/repos/staging-i686/
python-cffi/repos/staging-i686/PKGBUILD
(from rev 246604, python-cffi/trunk/PKGBUILD)
python-cffi/repos/staging-i686/rebuild.list
(from rev 246604, python-cffi/trunk/rebuild.list)
python-cffi/repos/staging-x86_64/
python-cffi/repos/staging-x86_64/PKGBUILD
(from rev 246604, python-cffi/trunk/PKGBUILD)
python-cffi/repos/staging-x86_64/rebuild.list
(from rev 246604, python-cffi/trunk/rebuild.list)
-----------------------------+
staging-i686/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++
staging-i686/rebuild.list | 1
staging-x86_64/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/rebuild.list | 1
4 files changed, 108 insertions(+)
Copied: python-cffi/repos/staging-i686/PKGBUILD (from rev 246604, python-cffi/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-09-19 10:55:11 UTC (rev 246605)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+
+_name=cffi
+pkgbase=python-$_name
+pkgname=(python-$_name python2-$_name)
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="Foreign Function Interface for Python calling C code"
+arch=('i686' 'x86_64')
+url="http://cffi.readthedocs.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.python.org/packages/source/c/${_name}/${_name}-$pkgver.tar.gz")
+sha512sums=('26ab695d34ef1895f38c735b2c6400cbf6325d622ce93799513130791365bb71d656288e991b86861ac8e899872504c1f4368d27104c4ac9b881c83c7f8dad88')
+
+prepare() {
+ cp -a $_name-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/$_name-$pkgver"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" py.test
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+}
+
+package_python-cffi() {
+ depends=('python' 'python-pycparser')
+
+ cd "$srcdir/$_name-$pkgver"
+ python3 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-cffi() {
+ depends=('python2' 'python2-pycparser')
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: python-cffi/repos/staging-i686/rebuild.list (from rev 246604, python-cffi/trunk/rebuild.list)
===================================================================
--- staging-i686/rebuild.list (rev 0)
+++ staging-i686/rebuild.list 2015-09-19 10:55:11 UTC (rev 246605)
@@ -0,0 +1 @@
+python-pygit2
Copied: python-cffi/repos/staging-x86_64/PKGBUILD (from rev 246604, python-cffi/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-09-19 10:55:11 UTC (rev 246605)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+
+_name=cffi
+pkgbase=python-$_name
+pkgname=(python-$_name python2-$_name)
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="Foreign Function Interface for Python calling C code"
+arch=('i686' 'x86_64')
+url="http://cffi.readthedocs.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.python.org/packages/source/c/${_name}/${_name}-$pkgver.tar.gz")
+sha512sums=('26ab695d34ef1895f38c735b2c6400cbf6325d622ce93799513130791365bb71d656288e991b86861ac8e899872504c1f4368d27104c4ac9b881c83c7f8dad88')
+
+prepare() {
+ cp -a $_name-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/$_name-$pkgver"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" py.test
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+}
+
+package_python-cffi() {
+ depends=('python' 'python-pycparser')
+
+ cd "$srcdir/$_name-$pkgver"
+ python3 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-cffi() {
+ depends=('python2' 'python2-pycparser')
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: python-cffi/repos/staging-x86_64/rebuild.list (from rev 246604, python-cffi/trunk/rebuild.list)
===================================================================
--- staging-x86_64/rebuild.list (rev 0)
+++ staging-x86_64/rebuild.list 2015-09-19 10:55:11 UTC (rev 246605)
@@ -0,0 +1 @@
+python-pygit2
More information about the arch-commits
mailing list