archlinux-pkgbuilds/py3status-git/PKGBUILD
Cedric Girard b31865b705 Add 'py3status-git/' from commit '925420f806bff6a7ee3d7874db08e19f17677d8e'
git-subtree-dir: py3status-git
git-subtree-mainline: 7626a2d506
git-subtree-split: 925420f806
2021-09-23 12:04:14 +02:00

32 lines
965 B
Bash

# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Johannes Fürmann
pkgname=py3status-git
pkgver=2.4.r42.gc4535a4
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')
conflicts=('py3status')
provides=('py3status')
depends=('python' 'python-setuptools')
makedepends=('git')
optdepends=('i3status: for some of the functionality')
source=("git+https://github.com/ultrabug/py3status.git")
md5sums=('SKIP')
pkgver() {
cd py3status
git describe --long --tags | sed 's/-/.r/;s/-/./g'
}
package() {
cd py3status
python setup.py install --root="$pkgdir/" --optimize=1
# doc
install -d "$pkgdir"/usr/share/doc/$pkgname
install -m644 doc/* README.rst CHANGELOG "$pkgdir"/usr/share/doc/$pkgname
# license
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}