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

Felix Yan fyan at archlinux.org
Sun Jan 17 03:23:37 UTC 2016


    Date: Sunday, January 17, 2016 @ 04:23:36
  Author: fyan
Revision: 258370

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

Added:
  python-cffi/repos/testing-i686/
  python-cffi/repos/testing-i686/PKGBUILD
    (from rev 258369, python-cffi/trunk/PKGBUILD)
  python-cffi/repos/testing-x86_64/
  python-cffi/repos/testing-x86_64/PKGBUILD
    (from rev 258369, python-cffi/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   53 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   53 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)

Copied: python-cffi/repos/testing-i686/PKGBUILD (from rev 258369, python-cffi/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-01-17 03:23:36 UTC (rev 258370)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+
+pkgbase=python-cffi
+pkgname=(python-cffi python2-cffi)
+pkgver=1.5.0
+_revision=904eb4b94a4e
+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' 'mercurial')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("hg+https://felixonmars@bitbucket.org/cffi/cffi#revision=$_revision")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a cffi{,-py2}
+}
+
+build() {
+  cd "$srcdir/cffi"
+  python3 setup.py build
+
+  cd "$srcdir/cffi-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/cffi"
+  python3 setup.py ptr
+
+  cd "$srcdir/cffi-py2"
+  python2 setup.py ptr
+}
+
+package_python-cffi() {
+  depends=('python-pycparser')
+
+  cd "$srcdir/cffi"
+  python3 setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-cffi() {
+  depends=('python2-pycparser')
+
+  cd "$srcdir/cffi-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: python-cffi/repos/testing-x86_64/PKGBUILD (from rev 258369, python-cffi/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-01-17 03:23:36 UTC (rev 258370)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+
+pkgbase=python-cffi
+pkgname=(python-cffi python2-cffi)
+pkgver=1.5.0
+_revision=904eb4b94a4e
+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' 'mercurial')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("hg+https://felixonmars@bitbucket.org/cffi/cffi#revision=$_revision")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a cffi{,-py2}
+}
+
+build() {
+  cd "$srcdir/cffi"
+  python3 setup.py build
+
+  cd "$srcdir/cffi-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/cffi"
+  python3 setup.py ptr
+
+  cd "$srcdir/cffi-py2"
+  python2 setup.py ptr
+}
+
+package_python-cffi() {
+  depends=('python-pycparser')
+
+  cd "$srcdir/cffi"
+  python3 setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-cffi() {
+  depends=('python2-pycparser')
+
+  cd "$srcdir/cffi-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list