updated on Thu Jan 12 00:00:55 UTC 2012
[aur-mirror.git] / logcli-git / PKGBUILD
blobfff914853da26b5f099986498cf7298b617a0dee
1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from GIT sources.
4 # Maintainer: Noah Bieler <noah.bieler[at]gmx[dot]ch>
5 pkgname=logcli-git
6 pkgver=20110716
7 pkgrel=1
8 pkgdesc="Logs the date, the current directory and a note."
9 url="http://www.github.com/bielern/logcli"
10 arch=('x86_64' 'i686')
11 license=('GPLv3')
12 groups=()
13 depends=()
14 makedepends=('git')
15 provides=()
16 conflicts=()
17 replaces=()
18 backup=()
19 options=()
20 install=
21 source=()
22 noextract=()
24 _gitroot="git://github.com/bielern/logcli.git"
25 _gitname="logcli"
27 build() {
28   cd "$srcdir"
29   msg "Connecting to GIT server...."
31   if [ -d $_gitname ] ; then
32     cd $_gitname && git pull origin
33     msg "The local files are updated."
34   else
35     git clone $_gitroot $_gitname
36   fi
38   msg "GIT checkout done or server timeout"
39   msg "Starting make..."
41   rm -rf "$srcdir/$_gitname-build"
42   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" --depth=1
43   cd "$srcdir/$_gitname-build"
45   make
48 package() {
49   cd "$srcdir/$_gitname-build"
50   install -d -m755 "${pkgdir}/usr/bin/"
51   install -m755 l "${pkgdir}/usr/bin/l"
52