[arch-commits] Commit in python-cffi/repos (6 files)
Felix Yan
fyan at archlinux.org
Thu Nov 19 03:16:12 UTC 2015
Date: Thursday, November 19, 2015 @ 04:16:12
Author: fyan
Revision: 251233
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
python-cffi/repos/staging-i686/
python-cffi/repos/staging-i686/PKGBUILD
(from rev 251232, python-cffi/trunk/PKGBUILD)
python-cffi/repos/staging-i686/rebuild.list
(from rev 251232, python-cffi/trunk/rebuild.list)
python-cffi/repos/staging-x86_64/
python-cffi/repos/staging-x86_64/PKGBUILD
(from rev 251232, python-cffi/trunk/PKGBUILD)
python-cffi/repos/staging-x86_64/rebuild.list
(from rev 251232, 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 251232, python-cffi/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-11-19 03:16:12 UTC (rev 251233)
@@ -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.3.1
+pkgrel=1
+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=('b89fe1b98a2e1492e05a9e69407104a5d5057dbe2730852fb91fae1db66751d35db53186d2f03dc950eb10dd9cecc83e44eb3e6954381dfd80d79519c7938288')
+
+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 251232, python-cffi/trunk/rebuild.list)
===================================================================
--- staging-i686/rebuild.list (rev 0)
+++ staging-i686/rebuild.list 2015-11-19 03:16:12 UTC (rev 251233)
@@ -0,0 +1 @@
+python-pygit2
Copied: python-cffi/repos/staging-x86_64/PKGBUILD (from rev 251232, python-cffi/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-11-19 03:16:12 UTC (rev 251233)
@@ -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.3.1
+pkgrel=1
+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=('b89fe1b98a2e1492e05a9e69407104a5d5057dbe2730852fb91fae1db66751d35db53186d2f03dc950eb10dd9cecc83e44eb3e6954381dfd80d79519c7938288')
+
+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 251232, python-cffi/trunk/rebuild.list)
===================================================================
--- staging-x86_64/rebuild.list (rev 0)
+++ staging-x86_64/rebuild.list 2015-11-19 03:16:12 UTC (rev 251233)
@@ -0,0 +1 @@
+python-pygit2
More information about the arch-commits
mailing list