[arch-commits] Commit in python-sybil/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Jun 6 06:36:45 UTC 2017


    Date: Tuesday, June 6, 2017 @ 06:36:45
  Author: felixonmars
Revision: 234490

archrelease: copy trunk to community-any

Added:
  python-sybil/repos/community-any/
  python-sybil/repos/community-any/PKGBUILD
    (from rev 234489, python-sybil/trunk/PKGBUILD)

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

Copied: python-sybil/repos/community-any/PKGBUILD (from rev 234489, python-sybil/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-06-06 06:36:45 UTC (rev 234490)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-sybil
+pkgname=('python-sybil' 'python2-sybil')
+pkgver=1.0.5
+pkgrel=1
+pkgdesc='Automated testing for the examples in your documentation.'
+arch=('any')
+license=('MIT')
+url='https://github.com/cjw296/sybil'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-nose' 'python2-nose')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/cjw296/sybil/archive/$pkgver.tar.gz")
+sha512sums=('f503c70af6e803dcf38a51ffcb4ebd6fdb8ca3e68f6fb6c6f6e026d152f5634f3e2b07f09a0210dd3906f8c8e56b50e43fa86bc4c9a27304c650a37db01cc506')
+
+prepare() {
+  cp -a sybil-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/sybil-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/sybil-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/sybil-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/sybil-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-sybil() {
+  depends=('python')
+
+  cd sybil-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-sybil() {
+  depends=('python2')
+
+  cd sybil-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list