[arch-commits] Commit in py3status/repos/community-any (PKGBUILD PKGBUILD)

Jonas Witschel diabonas at gemini.archlinux.org
Sun Feb 27 18:09:39 UTC 2022


    Date: Sunday, February 27, 2022 @ 18:09:39
  Author: diabonas
Revision: 1137814

archrelease: copy trunk to community-any

Added:
  py3status/repos/community-any/PKGBUILD
    (from rev 1137813, py3status/trunk/PKGBUILD)
Deleted:
  py3status/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-27 18:09:25 UTC (rev 1137813)
+++ PKGBUILD	2022-02-27 18:09:39 UTC (rev 1137814)
@@ -1,44 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Maintainer: Jonas Witschel <diabonas at archlinux.org>
-# Contributor: Maxim Baz <$pkgname at maximbaz dot com>
-# Contributor: Alexis "Horgix" Chotard <alexis.horgix.chotard at gmail.com>
-# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
-
-pkgname=py3status
-pkgver=3.40
-pkgrel=2
-pkgdesc="An extensible i3status replacement/wrapper written in python"
-url="https://www.ultrabug.fr/tag/py3status/"
-arch=('any')
-license=('BSD')
-depends=('python' 'python-setuptools')
-checkdepends=('python-pytest-runner')
-optdepends=('i3status: for i3status modules'
-            'i3blocks: for i3blocks modules'
-            'python-pyudev: for udev event monitoring'
-            'python-pydbus: for modules that rely on D-Bus'
-            'python-pytz: for the clock module'
-            'python-tzlocal: for the clock module'
-            'pacman-contrib: for the arch_updates module')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ultrabug/py3status/archive/$pkgver.tar.gz")
-sha256sums=('84885ec8a43626dcd7576b9cad029406c98675ca00ba66ff124d7607290d2b66')
-
-build() {
-    cd "$pkgname-$pkgver"
-    python setup.py build
-}
-
-check() {
-    cd "$pkgname-$pkgver"
-    python setup.py pytest
-}
-
-package() {
-    cd "$pkgname-$pkgver"
-    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
-    install -d "$pkgdir/usr/share/doc/$pkgname"{,/dev-guide,/user-guide}
-    install -m644 docs/*.md README.md CHANGELOG "$pkgdir/usr/share/doc/$pkgname"
-    install -m644 docs/dev-guide/* "$pkgdir/usr/share/doc/$pkgname/dev-guide"
-    install -m644 docs/user-guide/* "$pkgdir/usr/share/doc/$pkgname/user-guide"
-    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: py3status/repos/community-any/PKGBUILD (from rev 1137813, py3status/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-27 18:09:39 UTC (rev 1137814)
@@ -0,0 +1,45 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+# Contributor: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: Alexis "Horgix" Chotard <alexis.horgix.chotard at gmail.com>
+# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
+
+pkgname=py3status
+pkgver=3.41
+pkgrel=1
+pkgdesc="An extensible i3status replacement/wrapper written in python"
+url="https://www.ultrabug.fr/tag/py3status/"
+arch=('any')
+license=('BSD')
+depends=('python' 'python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest-runner')
+optdepends=('i3status: for i3status modules'
+            'i3blocks: for i3blocks modules'
+            'python-pyudev: for udev event monitoring'
+            'python-pydbus: for modules that rely on D-Bus'
+            'python-pytz: for the clock module'
+            'python-tzlocal: for the clock module'
+            'pacman-contrib: for the arch_updates module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ultrabug/py3status/archive/$pkgver.tar.gz")
+sha256sums=('9728ff6913a13087201c73f682f67afcd8dc73a71b044d6833737ee227ad5fba')
+
+build() {
+    cd "$pkgname-$pkgver"
+    python -m build --wheel --no-isolation
+}
+
+check() {
+    cd "$pkgname-$pkgver"
+    pytest
+}
+
+package() {
+    cd "$pkgname-$pkgver"
+    python -m installer --destdir="$pkgdir" dist/*.whl
+    install -d "$pkgdir/usr/share/doc/$pkgname"{,/dev-guide,/user-guide}
+    install -m644 docs/*.md README.md CHANGELOG "$pkgdir/usr/share/doc/$pkgname"
+    install -m644 docs/dev-guide/* "$pkgdir/usr/share/doc/$pkgname/dev-guide"
+    install -m644 docs/user-guide/* "$pkgdir/usr/share/doc/$pkgname/user-guide"
+    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list