blob: 2def5953f9399d0daf822fef40a540ab87888c97 (
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
|
# Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
pkgname=rainbow-git
pkgver=2.7.1.295.8173eef
pkgrel=1
pkgdesc="Colorize commands output or STDIN using patterns."
arch=(any)
url="https://github.com/nicoulaj/rainbow"
license=(GPL3)
depends=(python)
makedepends=('git'
'python-setuptools'
'python-jinja')
changelog=Changelog
provides=(rainbow)
conflicts=(rainbow)
source=("${pkgname}::git+https://github.com/nicoulaj/rainbow")
sha256sums=('SKIP')
pkgver() {
cd ${pkgbase}
printf "%s.%s.%s" "$(git describe --tags --abbrev=0|cut -dv -f2|cut -d- -f1)" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
cd ${pkgbase}
python setup.py build
}
package() {
cd ${pkgbase}
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -v -m755 -d "${pkgdir}/etc/bash_completion.d"
install -v -m644 build/completion/rainbow "${pkgdir}/etc/bash_completion.d/"
install -v -m755 -d "${pkgdir}/usr/share/zsh/site-functions"
install -v -m644 build/completion/_rainbow "${pkgdir}/usr/share/zsh/site-functions/"
install -v -m755 -d "${pkgdir}/usr/share/man/man1"
install -v -m644 build/man/rainbow.1.gz "${pkgdir}/usr/share/man/man1/"
}
|