updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / xfce4-weather-plugin-git / PKGBUILD
blobac38170eb4846ae95e0e66c3e27bab6a16617aa8
1 # $Id$
2 # Contributor: Baurzhan Muftakhidinov <baurthefirst@gmail.com>
4 _pkgname=xfce4-weather-plugin
5 pkgname=${_pkgname}-git
6 pkgver=20100415
7 pkgrel=1
8 pkgdesc="A weather 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=('xfce4-panel-git' 'libxml2' 'hicolor-icon-theme')
14 makedepends=('git' 'intltool' 'pkgconfig' 'xfce4-dev-tools-git')
15 provides=("${_pkgname}")
16 options=('!libtool')
17 md5sums=()
18 install=${_pkgname}.install
21 _gitroot="git://git.xfce.org/thunar-plugins/$_pkgname"
22 _gitname="$_pkgname"
24 build() {
25     
26     cd $srcdir
27     msg "Getting sources..."
28     
29     if [ -d "$srcdir/$_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"
37 msg "Starting build..."
38     
40         cd $srcdir/$_pkgname
41     
42   ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib  \
43     --localstatedir=/var --disable-static  --enable-debug=minimum \
44    --enable-maintainer-mode || return 1
46   make || return 1
47   make DESTDIR=${startdir}/pkg install || return 1