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

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 17:42:21 UTC 2015


    Date: Saturday, September 19, 2015 @ 19:42:21
  Author: foutrelis
Revision: 141064

archrelease: copy trunk to community-staging-any

Added:
  pyprof2calltree/repos/community-staging-any/
  pyprof2calltree/repos/community-staging-any/PKGBUILD
    (from rev 141063, pyprof2calltree/trunk/PKGBUILD)

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

Copied: pyprof2calltree/repos/community-staging-any/PKGBUILD (from rev 141063, pyprof2calltree/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 17:42:21 UTC (rev 141064)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Florian Bruhin (The Compiler) <archlinux.org at the-compiler.org>
+# Contributor: Brecht Machiels <brecht at mos6581 dot org>
+
+pkgbase=pyprof2calltree
+pkgname=(pyprof2calltree python2-pyprof2calltree)
+pkgver=1.3.2
+pkgrel=3
+pkgdesc="Help visualize profiling data from cProfile with kcachegrind"
+url="https://pypi.python.org/pypi/pyprof2calltree/"
+arch=('any')
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(http://pypi.python.org/packages/source/p/pyprof2calltree/pyprof2calltree-${pkgver}.tar.gz)
+sha1sums=('ef2d80d3da4cf70d8550464fd8d506c37f4e13f3')
+
+prepare() {
+  sed -n '/# Copyright/,/# THE SOFTWARE\./p' pyprof2calltree-$pkgver/pyprof2calltree.py > LICENSE
+  cp -a pyprof2calltree-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/pyprof2calltree-$pkgver"
+  python setup.py build
+}
+
+package_pyprof2calltree() {
+  depends=('python-setuptools')
+
+  cd "$srcdir/pyprof2calltree-$pkgver"
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pyprof2calltree() {
+  depends=('python2-setuptools')
+
+  cd "$srcdir/pyprof2calltree-$pkgver-py2"
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  mv "$pkgdir/usr/bin/pyprof2calltree"{,2}
+}



More information about the arch-commits mailing list