updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / squeeze-git / PKGBUILD
blob33b5549fc233594b329af1b58f83925a17515789
1 # $Id$
2 # Contributor: Jan Jezek <honzin.jezek@gmail.com>
3 # Contributor: Skunnyk <skunnyk@archlinux.fr>
5 pkgname=squeeze-git
6 pkgver=20111231
7 pkgrel=1
8 pkgdesc="Squeeze is  a modern and advanced archive manager for the Xfce Desktop Environment"
9 arch=(i686 x86_64)
10 license=('GPL2')
11 url="http://www.xfce.org/"
12 groups=('xfce4-git')
13 makedepends=('git' 'xfce4-dev-tools' 'pkgconfig' 'gtk-doc')
14 depends=('libxfce4util' 'hicolor-icon-theme' 'dbus-glib' 'gtk2' 'desktop-file-utils')
15 conflicts=('squeeze')
16 provides=("squeeze")
17 options=('!libtool')
18 install=squeeze.install
19 source=()
21 _gitroot="git://git.xfce.org/apps/squeeze"
22 _gitname="squeeze"
24 build() {    
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [[ -d "$_gitname" ]]; then
29     cd "$_gitname" && git pull origin
30     msg "The local files are updated."
31   else
32     git clone "$_gitroot" "$_gitname"
33   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting build..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
41   # quick workaround to allow build
42   sed -i "s/AC_CONFIG_MACRO_DIR.*//" configure.in.in
43   ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
44   --localstatedir=/var --disable-debug 
45   make || return 1
47 package() {
48   cd "$srcdir/$_gitname-build"
49   make DESTDIR=${startdir}/pkg install
51 md5sums=()