updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / gnome-commander-git / PKGBUILD
bloba83861572e4483686bb0cff61e85b8ae192ab8f4
1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
2 # Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
4 pkgname=gnome-commander-git
5 pkgver=20110707
6 pkgrel=1
7 pkgdesc="A graphical two-pane filemanager for Gnome"
8 arch=('i686' 'x86_64')
9 url="http://www.nongnu.org/gcmd/"
10 license=('GPL')
11 depends=('libgnomeui' 'exiv2' 'taglib' 'libgsf' 'python2' 'poppler' 'libunique')
12 makedepends=('perlxml' 'gnome-doc-utils>=0.11.2' 'chmlib' 'gnome-common' 'intltool')
13 options=(!libtool)
14 install=gnome-commander.install
15 provides=(gnome-commander)
16 conflicts=(gnome-commander)
18 _gitroot="git://git.gnome.org/gnome-commander"
19 _gitname="gnome-commander"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   #
40   # BUILD
41   #
43   # python2 fix
44   for file in doc/*/gnome-commander.xml; do
45     sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
46   done
47   export PYTHON=python2
49   export CFLAGS="$CFLAGS -fno-strict-aliasing"
50   ./autogen.sh
51   ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc \
52     --localstatedir=/var --disable-scrollkeeper --enable-python
54   make
57 package() {
58   cd "$srcdir/$_gitname-build"
60   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
62   mkdir -p "$pkgdir"/usr/share/gconf/schemas
63   gconf-merge-schema "$pkgdir"/usr/share/gconf/schemas/${pkgname}.schemas \
64     "$pkgdir"/etc/gconf/schemas/*.schemas
65   rm -f "$pkgdir"/etc/gconf/schemas/*.schemas