Date: Thursday, August 20, 2015 @ 10:50:09
  Author: fyan
Revision: 244406

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

Added:
  python-cffi/repos/staging-i686/
  python-cffi/repos/staging-i686/PKGBUILD
    (from rev 244405, python-cffi/trunk/PKGBUILD)
  python-cffi/repos/staging-i686/rebuild.list
    (from rev 244405, python-cffi/trunk/rebuild.list)
  python-cffi/repos/staging-x86_64/
  python-cffi/repos/staging-x86_64/PKGBUILD
    (from rev 244405, python-cffi/trunk/PKGBUILD)
  python-cffi/repos/staging-x86_64/rebuild.list
    (from rev 244405, python-cffi/trunk/rebuild.list)

-----------------------------+
 staging-i686/PKGBUILD       |   54 ++++++++++++++++++++++++++++++++++++++++++
 staging-i686/rebuild.list   |    1 
 staging-x86_64/PKGBUILD     |   54 ++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/rebuild.list |    1 
 4 files changed, 110 insertions(+)

Copied: python-cffi/repos/staging-i686/PKGBUILD (from rev 244405, 
python-cffi/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD                               (rev 0)
+++ staging-i686/PKGBUILD       2015-08-20 08:50:09 UTC (rev 244406)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: lilydjwg <[email protected]>
+
+_name=cffi
+pkgbase=python-$_name
+pkgname=(python-$_name python2-$_name)
+pkgver=1.2.0
+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-1.tar.gz";)
+sha512sums=('17e6941315bd97ec8d3de7a0ef0e54c3bd861f657cb2087fde92e43de915839d114b08b1b89258a9adc3f484cba91be83354e2791c5b082eefecedf5fb6ec0d0')
+
+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.4:$PYTHONPATH" py.test
+
+  cd "$srcdir/$_name-$pkgver-py2"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+  ) || warning "Expected failure: 
https://bitbucket.org/cffi/cffi/pull-requests/63";
+}
+
+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 244405, 
python-cffi/trunk/rebuild.list)
===================================================================
--- staging-i686/rebuild.list                           (rev 0)
+++ staging-i686/rebuild.list   2015-08-20 08:50:09 UTC (rev 244406)
@@ -0,0 +1 @@
+python-pygit2

Copied: python-cffi/repos/staging-x86_64/PKGBUILD (from rev 244405, 
python-cffi/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2015-08-20 08:50:09 UTC (rev 244406)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: lilydjwg <[email protected]>
+
+_name=cffi
+pkgbase=python-$_name
+pkgname=(python-$_name python2-$_name)
+pkgver=1.2.0
+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-1.tar.gz";)
+sha512sums=('17e6941315bd97ec8d3de7a0ef0e54c3bd861f657cb2087fde92e43de915839d114b08b1b89258a9adc3f484cba91be83354e2791c5b082eefecedf5fb6ec0d0')
+
+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.4:$PYTHONPATH" py.test
+
+  cd "$srcdir/$_name-$pkgver-py2"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+  ) || warning "Expected failure: 
https://bitbucket.org/cffi/cffi/pull-requests/63";
+}
+
+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 244405, 
python-cffi/trunk/rebuild.list)
===================================================================
--- staging-x86_64/rebuild.list                         (rev 0)
+++ staging-x86_64/rebuild.list 2015-08-20 08:50:09 UTC (rev 244406)
@@ -0,0 +1 @@
+python-pygit2

Reply via email to