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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:19:52 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:19:52
  Author: felixonmars
Revision: 1058014

archrelease: copy trunk to community-staging-x86_64

Added:
  python-setproctitle/repos/community-staging-x86_64/
  python-setproctitle/repos/community-staging-x86_64/PKGBUILD
    (from rev 1058012, python-setproctitle/trunk/PKGBUILD)

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

Copied: python-setproctitle/repos/community-staging-x86_64/PKGBUILD (from rev 1058012, python-setproctitle/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 20:19:52 UTC (rev 1058014)
@@ -0,0 +1,30 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-setproctitle
+pkgver=1.2.2
+pkgrel=2
+pkgdesc="Allows a python process to change its process title"
+license=("BSD")
+url="https://github.com/dvarrazzo/py-setproctitle"
+depends=('python')
+checkdepends=('python-pytest' 'procps-ng')
+arch=('x86_64')
+source=(https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-$pkgver.tar.gz)
+sha256sums=('7dfb472c8852403d34007e01d6e3c68c57eb66433fb8a5c77b13b89a160d97df')
+
+build() {
+    cd "$srcdir"/setproctitle-$pkgver
+    python setup.py build
+}
+
+check() {
+    local _pyver=$(python -c "import sys; print('{0}.{1}'.format(*sys.version_info[:2]))")
+    cd "$srcdir"/setproctitle-$pkgver/build/lib.linux-$CARCH-$_pyver
+    python -m pytest ../../tests
+}
+
+package_python-setproctitle() {
+    cd "$srcdir"/setproctitle-$pkgver
+    python setup.py install --skip-build -O1 --root="$pkgdir"
+    install -m0644 -D COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
+}



More information about the arch-commits mailing list