summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04d042b7a6dd22506d04ab9383f62ec5c701c56e (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
# Maintainer: Aleksey Filippov <sarum9in@gmail.com>
pkgname=python2-ttystatus-git
pkgver=0.0.0
pkgrel=1
pkgdesc="progress and status updates on terminals for Python"
arch=('i686' 'x86_64')
url="http://liw.fi/ttystatus/"
license=('GPL3')
groups=()
depends=('python2')
makedepends=('git')
provides=('python2-ttystatus')
conflicts=('python2-ttystatus')
replaces=('python2-ttystatus-bzr')
backup=()
options=()
install=
source=("$pkgname::git://git.liw.fi/ttystatus")
noextract=()
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$pkgname"
  find . -type f -exec sed -ri "s|^#!/usr/bin/python$|&2|g" '{}' '+'
  python2 setup.py build
}

package() {
  cd "$srcdir/$pkgname"
  python2 setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: