summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Girard2023-10-24 12:16:47 +0200
committerCedric Girard2023-10-24 12:16:47 +0200
commit91dcbbc313505af9cecdb2ecab914466cb29bf02 (patch)
treef871c78f608138fc9ccf768cdf8c3f40ff6203aa
parent36b59ef9dc22773dab30287df0e027335ad1afe0 (diff)
downloadaur-py3status-git.tar.gz
upgpkg: py3status-git 3.54.r3.gbbe43bce-1
switch to pep517 build
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD32
2 files changed, 41 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2fdbac594690..ae303b4c83bb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,28 @@
pkgbase = py3status-git
pkgdesc = An extensible i3status replacement/wrapper written in python (development version)
- pkgver = 3.39.r4.gcafe0c7a
+ pkgver = 3.54.r3.gbbe43bce
pkgrel = 1
url = https://github.com/ultrabug/py3status
arch = any
- license = custom: Simplified BSD
+ license = BSD
makedepends = git
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-wheel
+ makedepends = python-hatch
depends = python
- depends = python-setuptools
- optdepends = i3status: for some of the functionality
+ optdepends = i3status: for i3status modules
+ optdepends = i3blocks: for i3blocks modules
+ optdepends = iw: for the wifi module
+ optdepends = python-mpris2: for the mpris module
+ optdepends = python-pyudev: for udev event monitoring
+ optdepends = python-pydbus: for modules that rely on D-Bus
+ optdepends = python-pytz: for the clock module
+ optdepends = python-tzlocal: for the clock module
+ optdepends = pacman-contrib: for the arch_updates module
provides = py3status
conflicts = py3status
source = git+https://github.com/ultrabug/py3status.git
- md5sums = SKIP
+ sha256sums = SKIP
pkgname = py3status-git
diff --git a/PKGBUILD b/PKGBUILD
index 9e6861ae2cbf..39185fb3bfd3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,28 +3,46 @@
# Contributor: Johannes Fürmann
pkgname=py3status-git
-pkgver=3.39.r4.gcafe0c7a
+pkgver=3.54.r3.gbbe43bce
pkgrel=1
pkgdesc="An extensible i3status replacement/wrapper written in python (development version)"
url="https://github.com/ultrabug/py3status"
arch=('any')
-license=('custom: Simplified BSD')
+license=('BSD')
conflicts=('py3status')
provides=('py3status')
-depends=('python' 'python-setuptools')
-makedepends=('git')
-optdepends=('i3status: for some of the functionality')
+depends=('python')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-hatch')
+optdepends=('i3status: for i3status modules'
+ 'i3blocks: for i3blocks modules'
+ 'iw: for the wifi module'
+ 'python-mpris2: for the mpris module'
+ '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=("git+https://github.com/ultrabug/py3status.git")
-md5sums=('SKIP')
+sha256sums=('SKIP')
pkgver() {
cd py3status
git describe --long --tags | sed 's/-/.r/;s/-/./g'
}
+prepare() {
+ cd py3status
+ git clean -dfx
+}
+
+build() {
+ cd py3status
+ python -m build --wheel --no-isolation
+}
+
package() {
cd py3status
- python setup.py install --root="$pkgdir/" --optimize=1
+ python -m installer --destdir="$pkgdir" dist/*.whl
# doc
install -d "$pkgdir"/usr/share/doc/$pkgname
install -m644 docs/user-guide/* README.md CHANGELOG "$pkgdir"/usr/share/doc/$pkgname