[arch-commits] Commit in python-fields/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Dec 26 09:55:09 UTC 2016


    Date: Monday, December 26, 2016 @ 09:55:09
  Author: foutrelis
Revision: 202665

archrelease: copy trunk to community-staging-any

Added:
  python-fields/repos/community-staging-any/
  python-fields/repos/community-staging-any/PKGBUILD
    (from rev 202664, python-fields/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: python-fields/repos/community-staging-any/PKGBUILD (from rev 202664, python-fields/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-26 09:55:09 UTC (rev 202665)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-fields
+pkgname=('python-fields' 'python2-fields')
+pkgver=5.0.0
+pkgrel=2
+arch=('any')
+pkgdesc='A totally different take on container boilerplate'
+url='https://github.com/ionelmc/python-fields'
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-capturelog' 'python2-pytest-capturelog'
+              'python-pytest-benchmark' 'python2-pytest-benchmark'
+              'python-pytest-runner' 'python2-pytest-runner' 'python-attrs'
+              'python2-attrs' 'python-characteristic' 'python2-characteristic')
+source=("git+https://github.com/ionelmc/python-fields.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a python-fields{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-fields
+  python setup.py build
+
+  cd "$srcdir"/python-fields-py2
+  python2 setup.py build
+}
+
+check() {
+  # To workaround an error in doctest
+  export LC_CTYPE=en_US.UTF-8
+
+  cd "$srcdir"/python-fields
+  python setup.py ptr
+
+  cd "$srcdir"/python-fields-py2
+  python2 setup.py ptr
+}
+
+package_python-fields() {
+  depends=('python')
+
+  cd python-fields
+  python setup.py install --root "$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-fields() {
+  depends=('python2')
+
+  cd python-fields-py2
+  python2 setup.py install --root "$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list