[arch-commits] Commit in python-plop/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Dec 26 01:01:05 UTC 2016
Date: Monday, December 26, 2016 @ 01:01:05
Author: felixonmars
Revision: 202451
archrelease: copy trunk to community-staging-any
Added:
python-plop/repos/community-staging-any/
python-plop/repos/community-staging-any/PKGBUILD
(from rev 202450, python-plop/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-plop/repos/community-staging-any/PKGBUILD (from rev 202450, python-plop/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-26 01:01:05 UTC (rev 202451)
@@ -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=2
+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