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

Felix Yan fyan at archlinux.org
Wed Sep 30 06:37:49 UTC 2015


    Date: Wednesday, September 30, 2015 @ 08:37:47
  Author: fyan
Revision: 142243

archrelease: copy trunk to community-testing-any

Added:
  python-plop/repos/community-testing-any/
  python-plop/repos/community-testing-any/PKGBUILD
    (from rev 142242, python-plop/trunk/PKGBUILD)

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

Copied: python-plop/repos/community-testing-any/PKGBUILD (from rev 142242, python-plop/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2015-09-30 06:37:47 UTC (rev 142243)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-plop
+pkgname=(python-plop python2-plop)
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="Python Low-Overhead Profiler"
+arch=('any')
+license=('MIT')
+url="https://github.com/bdarnell/plop"
+makedepends=('python-tornado' 'python2-tornado' 'python-six' 'python2-six'
+             'python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/p/plop/plop-${pkgver}.tar.gz")
+md5sums=('4a313d6a8dd59ac48cfa3af426d197fc')
+
+prepare() {
+  cp -a plop-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/plop-${pkgver}"
+  python setup.py build
+
+  cd "$srcdir/plop-${pkgver}-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/plop-${pkgver}"
+  python -m plop.test.runtests
+
+  cd "$srcdir/plop-${pkgver}-py2"
+  python2 -m plop.test.runtests
+}
+
+package_python-plop() {
+  depends=('python-six' 'python-tornado')
+
+  cd "${srcdir}/plop-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
+
+package_python2-plop() {
+  depends=('python2-six' 'python2-tornado')
+
+  cd "${srcdir}/plop-${pkgver}-py2"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}



More information about the arch-commits mailing list