summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9bd3464e421ba972f864eef3d0610eb373c84bd1 (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
# Maintainer: YeahSure <lapdogpdx.yahoo.com>

pkgname=colout-git
_pkgname=colout
pkgver=r245.88b1770
pkgrel=1
pkgdesc="Reads text on stdin and produces colorized and stylized output"
arch=('any')
url="http://nojhan.github.com/colout/"
license=('GPL')
depends=('python')
optdepends=('python-pygments')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
source=('colout::git://github.com/nojhan/colout.git')
md5sums=('SKIP')

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

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