blob: 39185fb3bfd3587a974a9ca691e5734a494f7234 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Johannes Fürmann
pkgname=py3status-git
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=('BSD')
conflicts=('py3status')
provides=('py3status')
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")
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 -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
# license
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|