updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / gtktwitter-git / PKGBUILD
blob17b1833f1739214ed11fc0d4579ead091e76c40e
1 # Contributor: Rayslava <rayslava (at) gmail (dot) com>
3 pkgname=gtktwitter-git
4 pkgver=20090505
5 pkgrel=1
6 pkgdesc="A lightweight Twitter client for Linux written in GTK"
7 url="http://github.com/mattn/gtktwitter/tree/master"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('gtk2' 'libxml2')
11 makedepends=('git')
13 _gitroot="http://github.com/mattn/gtktwitter.git"
14 _gitname="gtktwitter"
16 build() {
17   cd $srcdir
18   msg "Connecting to github.com GIT server...."
20   if [ -d $srcdir/$_gitname ] ; then
21         cd $_gitname && git pull origin
22         msg "The local files are updated."
23   else
24         git clone $_gitroot
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   git clone $srcdir/$_gitname $_gitname-build
31   cd $_gitname-build
33   ACLOCAL="aclocal" ./autogen.sh --host=${CHOST} || return 1
34                     ./configure \
35                                 --prefix=/usr \
36                                 --infodir=/usr/share/info \
37                                 --mandir=/usr/man || return 1
38                     make || return 1
39                     make DESTDIR=$pkgdir install || return 1