updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / libsoup-gnome-git / PKGBUILD
blobe49ed4affa3a7ef8811e9c02bae39905f4e6dd41
1 #Maintainer: Nezmer <Nezmer@allurelinux.org>
2 pkgname=libsoup-gnome-git
3 pkgver=20091014
4 pkgrel=2
5 pkgdesc="Gnome HTTP Library with gnome integration enabled /git repo"
6 arch=('i686' 'x86_64')
7 url="http://live.gnome.org/LibSoup"
8 license=('LGPL')
9 depends=('gnome-keyring' 'libproxy')
10 makedepends=('intltool' 'gtk-doc' 'git' 'gnome-common')
11 provides=('libsoup=2.29.0' 'libsoup-git')
12 conflicts=('libsoup' 'libsoup-newest' 'libsoup-git' 'libsoup-gnome')
13 replaces=('libsoup' 'libsoup-newest' 'libsoup-git' 'libsoup-gnome')
14 options=(!libtool)
15 source=()
17 _gitroot="git://git.gnome.org/libsoup"
18 _gitname="libsoup"
20 build() {
22   cd "$srcdir"
23   msg "Connecting to the epiphany git repository..."
25   if [ -d "$srcdir/$_gitname" ] ; then
26   cd $_gitname && git pull origin
27   msg "The local files are updated."
28   else
29   git clone $_gitroot
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build/"
39  ./autogen.sh --prefix=/usr --sysconfdir=/etc \
40  --localstatedir=/var --disable-static --with-gnome --disable-gtk-doc || return 1
41  make || return 1
42  make DESTDIR="$pkgdir" install || return 1