updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / histring-git / PKGBUILD
blob4a9603bd03a0258362baa65fb617fb289b9f8f64
1 # Contributor: Rick W. Chen <stuffcorpse@archlinux.us>
3 pkgname=histring-git
4 pkgver=20110410
5 pkgrel=1
6 pkgdesc="highlight strings using ANSI terminal escape sequences"
7 arch=(i686 x86_64)
8 url="http://www.debian-administration.org/article/Highlighting_strings_in_text_output_with_histring"
9 license=('GPL')
10 depends=('glibc')
11 makedepends=('git')
12 provides=('histring')
14 source=('extrasrc_not_allowed.patch')
15 sha1sums=('241c55efc4a1c89061b0cf7b291101d1e130739f')
16 md5sums=('8e5f8c290e54a6395b366e6ff146e7b1')
18 _gitroot="git://git.grml.org/histring.git"
19 _gitname="histring"
21 build() {
22   cd ${srcdir}
23   msg "Connecting to grml GIT server...."
25   if [ -d "${srcdir}/$_gitname" ] ; then
26     cd "$_gitname" && git fetch origin && cd "${srcdir}"
27     msg "The local files are updated."
28   else
29     git clone --mirror "$_gitroot" "$_gitname"
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   if [ -d "${srcdir}/$_gitname-build" ] ; then
36     rm -fr "${srcdir}/$_gitname-build"
37   fi
39   git clone -l "$_gitname" "$_gitname-build"
40   cd "${srcdir}/$_gitname-build"
42   git apply ${srcdir}/extrasrc_not_allowed.patch
43   automake -a -c || true
44   ./configure --prefix=/usr
45   make
48 package() {
49   cd "${srcdir}/$_gitname-build"
50   make DESTDIR="${pkgdir}" install
52 # vim:set ts=2 sw=2 et: