updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / libxfce4menu-git / PKGBUILD
blobcd05c9631df8873142348d70b401a48877745bb6
1 # $Id$
2 # Contributor: Jan Jezek <honzin.jezek@gmail.com>
4 pkgname=libxfce4menu-git
5 pkgver=20100615
6 pkgrel=1
7 pkgdesc="A freedesktop.org compliant menu implementation for Xfce."
8 arch=(i686 x86_64)
9 license=('GPL2')
10 url="http://www.xfce.org/"
11 groups=('xfce4-git')
12 depends=('libxfce4util-git')
13 makedepends=('git' 'pkgconfig' 'xfce4-dev-tools-git')
14 conflicts=('libxfce4menu')
15 replaces=('libxfce4menu')
16 provides=("libxfce4menu=4.6.1")
17 options=('!libtool')
18 source=()
19 md5sums=()
20 _gitname="libxfce4menu"
21 _gitroot="git://git.xfce.org/xfce/libxfce4menu"
24 build() {
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..."
38         cd $srcdir/$_gitname
40         
41   ./autogen.sh  --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
42     --localstatedir=/var --disable-static
43   make || return 1
44   make DESTDIR=${startdir}/pkg install