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>
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/"
15 depends=('libxext' 'libxml2' 'curl' 'libxft' 'glib2' 'libxdamage' 'imlib2' 'lua')
16 makedepends=('cmake' 'pkgconfig' 'git' 'docbook2x')
20 conflicts=('conky' 'conky-svn')
21 md5sums=() #generate with 'makepkg -g'
23 _gitroot="git://git.omp.am/conky.git"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
36 msg "GIT checkout done or server timeout"
38 cd "$srcdir/$_gitname"
39 cp README.cmake README || return 1
42 msg "Starting configuration"
45 [ ! -d "$_gitname-build" ] || rm -r "$_gitname-build" || return 1
46 mkdir "$_gitname-build" || return 1
48 ccmake "../$_gitname/" || return 1
51 msg "Starting make..."
53 make DESTDIR="$pkgdir" install