updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / squeeze-git / PKGBUILD
blob7114b72b5c19a8cc4cae08ad1a7ff7e735c2bc0d
1 # $Id$
2 # Contributor: Jan Jezek <honzin.jezek@gmail.com>
3 # Contributor: Skunnyk <skunnyk@archlinux.fr>
5 pkgname=squeeze-git
6 pkgver=20120116
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-git' '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   mkdir m4/
43   ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
44   --localstatedir=/var --disable-debug --enable-maintainer-mode
45   make || return 1
47 package() {
48   cd "$srcdir/$_gitname-build"
49   make DESTDIR=${startdir}/pkg install
51 md5sums=()