updated on Mon Jan 9 16:10:19 UTC 2012
[aur-mirror.git] / pan-dev / PKGBUILD
blob8147502c6261bfab91f2f6b3690abd607208fe41
1 # Contributor: Bernard Baeyens (berbae) <berbae52 at sfr dot fr>
3 pkgname=pan-dev
4 pkgver=20120109
5 pkgrel=1
6 pkgdesc="A powerful Newsgroup Article reader for GTK+"
7 arch=('i686' 'x86_64')
8 url="http://git.gnome.org/browse/pan2/"
9 license=('GPL2')
10 depends=('gtk3' 'gmime' 'gtkspell3-dev')
11 makedepends=('gnome-common' 'intltool' 'git')
12 conflicts=('pan' 'pan-git' 'pan-gtk3')
13 options=('!makeflags')
14 source=('build-with-gtkspell3.patch')
15 sha1sums=('1aed4c716ada2f5f04029991360c92e564ec3143')
17 _gitroot="git://git.gnome.org/pan2"
18 _gitname="pan2"
20 build() {
21   cd $srcdir
22   msg "Connecting to the GIT repository..."
24   if [[ -d $srcdir/$_gitname ]] ; then
25       cd $_gitname
26       msg "Cleaning working directory."
27       git clean -qxf
28       git reset --hard
29       msg "Updating local files."
30       git pull origin
31       msg "The local files are updated."
32   else
33       git clone $_gitroot
34   fi
36   msg "GIT checkout done"
38   cd $srcdir/$_gitname
40   patch -Np1 -i $srcdir/build-with-gtkspell3.patch
42   ./autogen.sh --prefix=/usr --with-gtk3
43   make
46 package() {
47   cd $srcdir/$_gitname
48   make DESTDIR="${pkgdir}" install