summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2d5c183f492b2bf34fbf0896ab1a4cfe43c5a96 (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
47
48
49
50
51
52
53
# Maintainer: John Jenkins <twodopeshaggy@gmail.com>
# Contributor: Mateusz Loskot <mateusz@loskot.net>
pkgname=colormake-git
_pkgname=colormake
pkgver=r33.05688ab
pkgrel=1
pkgdesc="A simple wrapper around make to make it's output more readable"
arch=('i686' 'x86_64')
url="https://github.com/pagekite/Colormake"
license=('GPL')
conflicts=('colormake')
depends=('perl')
makedepends=('git')
source=("${pkgname}::git+https://github.com/pagekite/Colormake.git")
md5sums=('SKIP')

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

prepare() {
	cd $srcdir/$pkgname

	# adjust scripts to colormake.pl path
	sed -i 's#colormake.pl#/usr/share/colormake/colormake.pl#g' colormake
}

package() { 
	cd $srcdir/$pkgname

	# executables
	install -dm755 $pkgdir/usr/bin
	install -m755 colormake colormake-short clmake clmake-short $pkgdir/usr/bin

	install -Dm755 colormake.pl $pkgdir/usr/share/$_pkgname/colormake.pl

	# man page
	install -Dm644 colormake.1 $pkgdir/usr/share/man/man1/colormake.1

	# documentation
	install -dm755 $pkgdir/usr/share/doc/$_pkgname
	install -m644 \
		AUTHORS \
		BUGS \
		ChangeLog \
		README.md \
		$pkgdir/usr/share/doc/$_pkgname
}



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