updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / epiphany-git / PKGBUILD
blob61bf9ab2a1af372f3fe9294c71aef74a61ceb907
1 # Maintainer: Nezmer <Nezmer@gmail.com>
2 pkgname=epiphany-git
3 pkgver=20091013
4 pkgrel=1
5 pkgdesc="git snapshots of epiphany web browser "
6 arch=('i686' 'x86_64')
7 url="http://www.gnome.org/projects/epiphany/"
8 license=('GPL')
9 depends=('avahi' 'libnotify>=0.4.5' 'webkitgtk-svn>=49500' 'startup-notification' 'gtk2>=2.17.2' 'libsoup-gnome-git' 'nss' 'hicolor-icon-theme')
10 makedepends=('gnome-doc-utils' 'gtk-doc' 'gnome-common' 'gnome-python>=2.22.3' 'intltool' 'git')
11 options=('!libtool')
12 provides=(epiphany-webkit=2.29.0)
13 conflicts=('epiphany' 'epiphany-webkit')
14 replaces=('epiphany' 'epiphany-webkit')
15 install=$pkgname.install
16 source=()
17 md5sums=()
20 _gitroot="git://git.gnome.org/epiphany"
21 _gitname="epiphany"
23 build() {
25   cd "$srcdir"
26   msg "Connecting to the epiphany git repository..."
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 make..."
38   rm -rf "$srcdir/$_gitname-build"
39   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build/"
41   ./autogen.sh
42   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
43         --enable-python \
44         --disable-scrollkeeper \
45         --disable-schemas-install \
46         --disable-tests \
47         --enable-certificate-manager \
48         --enable-spell-checker \
49         --with-engine=webkit || return 1
50   make || return 1
51   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=$pkgdir install || return 1
52     
53   # Merge gconf schemas in a single file
54   install -d m755 $pkgdir/usr/share/gconf/schemas || return 1
55   gconf-merge-schema $pkgdir/usr/share/gconf/schemas/epiphany.schemas \
56         $pkgdir/etc/gconf/schemas/*.schemas || return 1
57   rm -rf $pkgdir/etc