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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 19:02:49 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:02:49
  Author: foutrelis
Revision: 753314

archrelease: copy trunk to community-staging-any

Added:
  python-pprofile/repos/community-staging-any/
  python-pprofile/repos/community-staging-any/PKGBUILD
    (from rev 753313, python-pprofile/trunk/PKGBUILD)

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

Copied: python-pprofile/repos/community-staging-any/PKGBUILD (from rev 753313, python-pprofile/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 19:02:49 UTC (rev 753314)
@@ -0,0 +1,33 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pprofile
+pkgname=python-pprofile
+pkgver=2.0.5
+pkgrel=2
+pkgdesc="Line-granularity, thread-aware deterministic and statistic pure-python profiler"
+arch=('any')
+url="https://github.com/vpelletier/pprofile"
+license=('GPL2')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('130489d9099bb97ec04d36c2dadc26e791ba1ed6b7fecbb125e4611582e5f2999650017d01d05d326db12991b817ca29eaedfa9f6c9d8783f4b08765ae4b32ad')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list