[arch-commits] Commit in python-cffi/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Jun 21 14:33:28 UTC 2016
Date: Tuesday, June 21, 2016 @ 14:33:27
Author: felixonmars
Revision: 270424
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
python-cffi/repos/testing-i686/
python-cffi/repos/testing-i686/PKGBUILD
(from rev 270423, python-cffi/trunk/PKGBUILD)
python-cffi/repos/testing-x86_64/
python-cffi/repos/testing-x86_64/PKGBUILD
(from rev 270423, 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 270423, python-cffi/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2016-06-21 14:33:27 UTC (rev 270424)
@@ -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.7.0
+_revision=338244197c0dd4afcf76a7dbf962e70fb95b8044
+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://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 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 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 270423, python-cffi/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2016-06-21 14:33:27 UTC (rev 270424)
@@ -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.7.0
+_revision=338244197c0dd4afcf76a7dbf962e70fb95b8044
+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://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 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 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