1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
2 # Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
4 pkgname=gnome-commander-git
7 pkgdesc="A graphical two-pane filemanager for Gnome"
9 url="http://www.nongnu.org/gcmd/"
11 depends=('libgnomeui' 'exiv2' 'taglib' 'libgsf' 'python2' 'poppler' 'libunique')
12 makedepends=('perlxml' 'gnome-doc-utils>=0.11.2' 'chmlib' 'gnome-common' 'intltool')
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"
23 msg "Connecting to GIT server...."
25 if [ -d $_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname
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"
44 for file in doc/*/gnome-commander.xml; do
45 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
49 export CFLAGS="$CFLAGS -fno-strict-aliasing"
51 ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc \
52 --localstatedir=/var --disable-scrollkeeper --enable-python
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