updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / twilc-git / PKGBUILD
blobeb0738d6ad9dbd0eafda3ead73f9603ef4e306cd
1 # Maintainer: poplarch <poplarch[at]gmail[dot]com>
3 pkgname=twilc-git
4 pkgver=20110720
5 pkgrel=1
6 pkgdesc="twilc is a CLI(command line) twitter client based on NCurses Library."
7 arch=('i686' 'x86_64')
8 url="https://github.com/pipitu/twilc"
9 license=('GPL')
10 depends=('liboauth' 'libxml2' 'ncurses' 'curl')
11 makedepends=('git')
12 conflicts=('twilc')
13 provides=("twilc")
15 _gitroot="git://github.com/pipitu/twilc.git"
16 _gitname="twilc"
18 build() {
19   cd $srcdir
20   msg "Connecting to the GIT server...."
22   if [[ -d $srcdir/$_gitname ]] ; then
23     cd $_gitname
24     git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot
28   fi
30   msg "GIT checkout done"
31   msg "Starting make..."
33   if [[ -d $srcdir/$_gitname-build ]] ; then
34     rm -rf $srcdir/$_gitname-build
35   fi
37   git clone $srcdir/$_gitname $srcdir/$_gitname-build
39   cd $srcdir/$_gitname-build
41   ./configure --prefix=/usr
43   make
44   make DESTDIR=$pkgdir install
46   rm -rf $srcdir/$_gitname-build