updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / logjam-andyshev-git / PKGBUILD
blob8d0874275bb883035925d97cba2acc6e4d961e35
1 # Contributor: Artem Kondratyev <konapt@gmail.com>
3 pkgname=logjam-andyshev-git 
4 pkgver=20110608
5 pkgrel=1
6 pkgdesc="GTK2 LiveJournal client, Andy Shevchenko's development branch"
7 arch=('i686' 'x86_64')
8 url="http://github.com/andy-shev/LogJam/"
9 license=('GPL2')
10 depends=(gtk2 pango libxml2 libsoup librsvg gtkspell sqlite3 gtkhtml)
11 makedepends=('git' 'autoconf>=2.53' 'automake>=1.9' 'libtool>=1.5' 'intltool>=0.30' 'perl-yaml')
12 conflicts=('logjam')
13 provides=('logjam=4.6.1')
14 install=logjam-andyshev-git.install
16 _gitroot="git://github.com/andy-shev/LogJam.git"
17 _gitname="LogJam"
19 build() {
20         cd ${srcdir}
21         msg "Connecting to github.com GIT server...."
23         if [ -d ${srcdir}/$_gitname ] ; then
24                 cd $_gitname && git pull origin
25                 msg "The local files are updated."
26         else
27                 git clone $_gitroot $_gitname
28         fi
30         msg "GIT checkout done or server timeout"
31         msg "Starting make..."
33         git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build
34         
35         cd ${srcdir}/$_gitname-build
36     
37         ./autogen.sh        
38         ./configure --prefix=/usr || return 1
39         make || return 1
40         make DESTDIR=$pkgdir install || return 1
42         rm -rf $srcdir/$_gitname-build