summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 353e1706586a12ef3f9363f34264e380b2cb3809 (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
# Maintainer: Sebastien Bariteau <numkem@gmail.com>
#
# i3pystatus doesn't have releases; it's rolling release.
# This package attempts to track recent stable versions, but is updated
# manually so we can check that it buidls/runs.
#
# This'll be improved at some point to be an automated process.

_pkgrev=0d7156b5b10efc88a32d7bf87ea3d10cbd1e207a

pkgname=i3pystatus
pkgdesc="i3status replacement written in python for the i3 window manager"
pkgver=r1721.0d7156b
pkgrel=1
arch=('i686' 'x86_64')
license=('mit')
depends=('python')
makedepends=('python-setuptools')
optdepends=('python-pyalsaaudio: For the alsa module.',
            'python-dbus: For the thunderbird or now_playing modules.',
            'python-psutil: For the mem, membar or network_traffic modules.',
            'python-netifaces: For the network or wireless modules.',
            'python-beautifulsoup4: For the parcel module.',
            'python-cssselect: For the parcel module.',
            'python-lxml: For the parcel module.',
            'python-pywapi: For the weather module.',
            'python-basiciw: For the wireless module.'
            'python-colour: For the pulseaudio module.')
url="https://github.com/enkore/i3pystatus"
source=("git+https://github.com/enkore/i3pystatus.git#commit=$_pkgrev")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${pkgname}"
  python setup.py build
}

package() {
  cd "$srcdir/${pkgname}"
  python setup.py install --prefix=/usr --root="$pkgdir"
}