updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pan-git / PKGBUILD
blob22331e9dd2abe7097061a3c5b8b8dd388c5bbd1c
1 # Contributor: MyMaud <russ@russgibson.org>
2 # Maintener: Frederic Bezies <mymaud@gmail.com>
4 pkgname=pan-git
5 _gitname="pan2"
6 pkgver=20120122
7 pkgrel=2
8 pkgdesc="Pan is a Usenet newsreader that's good at both text and binaries. Testing repo by Heinrich Müeller."
9 url="http://git.gnome.org/browse/pan2"
10 _gitroot="git://git.gnome.org/pan2" 
11 arch=('i686' 'x86_64')
12 license=('GPL')
13 depends=('autoconf' 'automake' 'gmime' 'gtkspell' 'gnome-common' 'gtk3' 'gnome-doc-utils' 'libgnome-keyring' 'libnotify')
14 makedepends=('git' 'intltool')
15 conflicts=('pan' 'pan-gtk3')
17 build() {
18         export LC_ALL="C"
19         cd ${srcdir}
20         msg "Connecting GIT server...."
21         
22         if [ -d $_gitname ] ; then
23                 cd $_gitname && git pull origin
24                 msg "The local files are updated."
25         else
26                 git clone $_gitroot $_gitname
27         fi
28         msg "GIT checkout done or server timeout"
29         msg "Starting installing..."
30         
31         cd ${srcdir}
32         rm -rf $srcdir/${_gitname}-build
33         git clone ${_gitname} ${_gitname}-build
34         cd ${srcdir}/$_gitname-build
36         ./autogen.sh --prefix=/usr --enable-libnotify --with-gtkspell --with-gtk3 --with-gnutls
37         make 
38         make prefix=${pkgdir}/usr install
39         }