updated on Thu Jan 19 08:03:52 UTC 2012
[aur-mirror.git] / pan-git / PKGBUILD
blobe75f9fe601ad2e5927fc44cdb47608e11a3abe19
1 # Contributor: MyMaud <russ@russgibson.org>
2 # Maintener: Frederic Bezies <mymaud@gmail.com>
4 pkgname=pan-git
5 _gitname="pan2"
6 pkgver=20120119
7 pkgrel=1
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')
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 --with-openssl --with-gtk-spell --enable-libnotify --without-gnome-doc-help
37         make 
38         make prefix=${pkgdir}/usr install
39         }