updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ayttm-git / PKGBUILD
blobf400055e1046ef5b183450985004f523dc1df05a
1 pkgname=ayttm-git
2 pkgver=20100515
3 pkgrel=1
4 pkgdesc="Unified instant messenger client"
5 arch=('i686' 'x86_64')
6 url="http://ayttm.sourceforge.net/"
7 license=('GPL')
8 install=ayttm-git.install
9 if [ $CARCH = 'i686' ] ;
10 then
11 depends=('expat' 'atk' 'libxpm' 'esound' 'audiofile' 'gpgme' 'gtk2' 'jasper' 'libtool' 'openssl' 'xcb-util' 'pango' 'zlib' 'enchant' 'cairo')
12 makedepends=('autoconf' 'automake' 'bison'  'git' )
13 md5sums=('6db34a84089ff8f10e0288b352c4220c')
15 else
16 depends=('expat' 'atk' 'libxpm' 'esound' 'audiofile' 'gpgme' 'gtk2' 'jasper' 'libtool' 'openssl' 'xcb-util' 'pango' 'zlib' 'enchant' 'cairo')
17 makedepends=('autoconf' 'automake' 'bison'  'git' )
18 md5sums=('8620306b615c5acd0195526f1f4bc4be')
22 _gitroot=git://ayttm.git.sourceforge.net/gitroot/ayttm/ayttm
23 _gitname=ayttm
26 build() {
27   cd ${srcdir}
28   msg "Connecting to ayttm GIT server..."
30   if [ -d ${srcdir}/$_gitname ]; then
31     cd $_gitname && git pull origin
32     msg "The local files are updated."
33   else
34     git clone $_gitroot
35   fi
37   msg "GIT checkout done or server timeout"
38   msg "Starting make..."
40   if [ -d ${srcdir}/$_gitname-build ]; then
41     rm -rf ${srcdir}/$_gitname-build
42   fi
43   
44   cd ayttm
45   
46   ./gen
47   ./configure
48   make
49   make DESTDIR="$pkgdir" install