updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / taskview-git / PKGBUILD
blob9e9ce0ba5256aa36158da40211e66e6bf5beeedf
1 # Contributor: Flamelab <panosfilip@gmail.com>
2 # Contrubutor: hobarrera <hugo@osvaldobarrera.com.ar>
4 pkgname=taskview-git
5 _realpkgname=TaskView
6 pkgver=20110504
7 pkgrel=2
8 pkgdesc="The TaskView Project aims to create a set of APIs and libraries, which enables application developers to export information related to the Tasks."
9 arch=("i686" "x86_64")
10 url="https://github.com/ssickert/TaskView"
11 depends=('glib2')
12 makedepends=('git' 'gnome-common' 'gtk-doc')
13 license=('GPL')
15 _gitroot="git://github.com/ssickert/TaskView.git"
16 _gitname="TaskView"
18 build() 
20
21     cd ${srcdir}/
23     msg "Connecting to the GIT server...."
24     if [[ -d ${srcdir}/${_gitname} ]] ; then
25         cd ${_gitname}
26         git pull origin
27         msg "The local files are updated..."
28     else
29         git clone ${_gitroot}
30     fi
31     
32     msg "GIT checkout done."
34     msg "Starting make for: ${pkgname}"
35     
36     if [[ -d ${srcdir}/${_gitname}-build ]]; then
37        msg "Cleaning the previous build directory..." 
38        rm -rf ${srcdir}/${_gitname}-build
39     fi
41     git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
42     
43     cd ${srcdir}/${_gitname}-build
44         
45     msg "Starting configure..."
47     ./autogen.sh --prefix=/usr
48     
49     msg "Starting make..."
50     make
53 package()
56     cd ${srcdir}/${_gitname}-build
57     make DESTDIR=${pkgdir} install