updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xfce4-systemload-plugin-git / PKGBUILD
blobe548dfaeb9e96eb024a736f8b3553863a650c8e6
1 # $Id$
2 # Contributor: Baurzhan Muftakhidinov <baurthefirst@gmail.com>
4 _pkgname=xfce4-systemload-plugin
5 pkgname=${_pkgname}-git
6 pkgver=20100810
7 pkgrel=1
8 pkgdesc="A system load plugin for the Xfce4 panel"
9 arch=(i686 x86_64)
10 license=('GPL2')
11 url="http://www.xfce.org"
12 groups=('xfce4-git')
13 depends=('gtk2' 'libxfce4util-git' 'libxfcegui4-git' 'xfce4-panel-git')
14 makedepends=('git' 'intltool' 'pkgconfig' 'xfce4-dev-tools-git')
15 provides=("${_pkgname}")
16 options=('!libtool')
17 md5sums=()
20 _gitroot="git://git.xfce.org/panel-plugins/$_pkgname"
21 _gitname="$_pkgname"
23 build() {
24     
25     cd $srcdir
26     msg "Getting sources..."
27     
28     if [ -d "$srcdir/$_gitname" ] ; then
29          cd $_gitname && git pull origin
30          msg "The local files are updated."
31         else
32          git clone $_gitroot
33         fi
35 msg "GIT checkout done or server timeout"
36 msg "Starting build..."
37     
39         cd $srcdir/$_pkgname
40     
41   ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib  \
42     --localstatedir=/var --disable-static  --enable-debug=minimum \
43    --enable-maintainer-mode || return 1
45   make || return 1
46   make DESTDIR=${startdir}/pkg install || return 1