updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / conky-git / PKGBUILD
blobc96998021cce1ef7b8063179cbdf0d6e37a134af
1 # See http://wiki.archlinux.org/index.php/Arch_CVS_&_SVN_PKGBUILD_guidelines
2 # for more information on packaging from GIT sources.
4 # write: echo "\$VAR=$VAR" >> filename, read: source filename 
6 # Contributor: Your Name <youremail@domain.com>
7 pkgname=conky-git
8 pkgver=20100127
9 pkgrel=1
10 pkgdesc="Conky is an advanced, highly configurable system monitor for X based on torsmo"
11 arch=('i686' 'x86_64')
12 url="http://conky.sourceforge.net/"
13 license=('BSD' 'GPL')
14 replaces=('torsmo')
15 depends=('libxext' 'libxml2' 'curl' 'libxft' 'glib2' 'libxdamage' 'imlib2' 'lua')
16 makedepends=('cmake' 'pkgconfig' 'git' 'docbook2x')
17 install=
18 source=()
19 noextract=()
20 conflicts=('conky' 'conky-svn')
21 md5sums=() #generate with 'makepkg -g'
23 _gitroot="git://git.omp.am/conky.git"
24 _gitname="conky"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot
34   fi
36   msg "GIT checkout done or server timeout"
38   cd "$srcdir/$_gitname"
39   cp README.cmake README || return 1
40   cd "$srcdir/"
42   msg "Starting configuration"
44   #CONFIGURE HERE
45   [ ! -d "$_gitname-build" ] || rm -r "$_gitname-build" || return 1
46   mkdir "$_gitname-build" || return 1
47   cd "$_gitname-build"
48   ccmake "../$_gitname/" || return 1
50   # BUILD HERE
51   msg "Starting make..."
52   make || return 1
53   make DESTDIR="$pkgdir" install
54