2021-09-23 12:10:17 +02:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
|
2015-07-07 11:32:45 +02:00
|
|
|
# Contributor: Johannes Fürmann
|
|
|
|
|
|
|
|
pkgname=py3status-git
|
2023-10-24 12:16:47 +02:00
|
|
|
pkgver=3.54.r3.gbbe43bce
|
2015-07-07 11:32:45 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="An extensible i3status replacement/wrapper written in python (development version)"
|
|
|
|
url="https://github.com/ultrabug/py3status"
|
|
|
|
arch=('any')
|
2023-10-24 12:16:47 +02:00
|
|
|
license=('BSD')
|
2015-07-07 11:32:45 +02:00
|
|
|
conflicts=('py3status')
|
|
|
|
provides=('py3status')
|
2023-10-24 12:16:47 +02:00
|
|
|
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')
|
2015-07-07 11:32:45 +02:00
|
|
|
source=("git+https://github.com/ultrabug/py3status.git")
|
2023-10-24 12:16:47 +02:00
|
|
|
sha256sums=('SKIP')
|
2015-07-07 11:32:45 +02:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd py3status
|
|
|
|
git describe --long --tags | sed 's/-/.r/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
2023-10-24 12:16:47 +02:00
|
|
|
prepare() {
|
|
|
|
cd py3status
|
|
|
|
git clean -dfx
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd py3status
|
|
|
|
python -m build --wheel --no-isolation
|
|
|
|
}
|
|
|
|
|
2015-07-07 11:32:45 +02:00
|
|
|
package() {
|
|
|
|
cd py3status
|
2023-10-24 12:16:47 +02:00
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
2015-07-07 11:32:45 +02:00
|
|
|
# doc
|
|
|
|
install -d "$pkgdir"/usr/share/doc/$pkgname
|
2021-09-23 12:10:17 +02:00
|
|
|
install -m644 docs/user-guide/* README.md CHANGELOG "$pkgdir"/usr/share/doc/$pkgname
|
2015-07-07 11:32:45 +02:00
|
|
|
# license
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
}
|