[arch-commits] Commit in pyprof2calltree/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Sep 5 06:13:10 UTC 2016


    Date: Monday, September 5, 2016 @ 06:13:10
  Author: felixonmars
Revision: 188551

upgpkg: pyprof2calltree 1.4.0-1

Modified:
  pyprof2calltree/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-04 19:48:21 UTC (rev 188550)
+++ PKGBUILD	2016-09-05 06:13:10 UTC (rev 188551)
@@ -5,15 +5,15 @@
 
 pkgbase=pyprof2calltree
 pkgname=(pyprof2calltree python2-pyprof2calltree)
-pkgver=1.3.2
-pkgrel=3
+pkgver=1.4.0
+pkgrel=1
 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')
+source=("https://pypi.io/packages/source/p/pyprof2calltree/pyprof2calltree-$pkgver.tar.gz")
+sha1sums=('df2068f94a4f9259f6dda2741338798878ba6478')
 
 prepare() {
   sed -n '/# Copyright/,/# THE SOFTWARE\./p' pyprof2calltree-$pkgver/pyprof2calltree.py > LICENSE
@@ -21,24 +21,27 @@
 }
 
 build() {
-  cd "$srcdir/pyprof2calltree-$pkgver"
+  cd "$srcdir"/pyprof2calltree-$pkgver
   python setup.py build
+
+  cd "$srcdir"/pyprof2calltree-$pkgver-py2
+  python setup.py build
 }
 
 package_pyprof2calltree() {
   depends=('python-setuptools')
 
-  cd "$srcdir/pyprof2calltree-$pkgver"
+  cd pyprof2calltree-$pkgver
   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-pyprof2calltree() {
   depends=('python2-setuptools')
 
-  cd "$srcdir/pyprof2calltree-$pkgver-py2"
+  cd pyprof2calltree-$pkgver-py2
   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
   mv "$pkgdir/usr/bin/pyprof2calltree"{,2}
 }



More information about the arch-commits mailing list