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

David Runge dvzrv at gemini.archlinux.org
Fri Oct 8 17:50:01 UTC 2021


    Date: Friday, October 8, 2021 @ 17:50:00
  Author: dvzrv
Revision: 1028053

upgpkg: python-pprofile 2.1.0-1: Upgrade to 2.1.0.

Simplify installation in package() to adhere to python packaging guidelines.

Modified:
  python-pprofile/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-08 17:46:28 UTC (rev 1028052)
+++ PKGBUILD	2021-10-08 17:50:00 UTC (rev 1028053)
@@ -2,8 +2,8 @@
 
 _name=pprofile
 pkgname=python-pprofile
-pkgver=2.0.5
-pkgrel=2
+pkgver=2.1.0
+pkgrel=1
 pkgdesc="Line-granularity, thread-aware deterministic and statistic pure-python profiler"
 arch=('any')
 url="https://github.com/vpelletier/pprofile"
@@ -11,11 +11,11 @@
 depends=('python')
 makedepends=('python-setuptools')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('130489d9099bb97ec04d36c2dadc26e791ba1ed6b7fecbb125e4611582e5f2999650017d01d05d326db12991b817ca29eaedfa9f6c9d8783f4b08765ae4b32ad')
+sha512sums=('1cfea7bc89258f8a94c4c08cdbe84089e7417c17fe662014df33e315c86432830a100c367076ddb00b153e6a7b0d7394670190538fcbe85077c16bfe3dbb8545')
+b2sums=('c5d94585f8a56e199cfe6ac73ad0528ca6de6bc252996989f07d29d9fea6bfeda4809f8806c00a710396b0a27518a0a02908e887b473e306612754dcb0ae8ccf')
 
 prepare() {
   mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
 }
 
 build() {
@@ -25,9 +25,6 @@
 
 package() {
   cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
+  python setup.py install --optimize=1 --root="${pkgdir}"
   install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list