updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / hatexmpp-git / PKGBUILD
bloba2160813055cdcdf9fd1f61fa7fbd4e602adda4b
1 # Contributor: L29Ah <zl29ah@gmail.com>
2 # Contributor: LexsZero <lexszero@gmail.com>
3 # Maintainer:  Padavan <padavankun@gmail.com>
5 #hatexmpp is a xmpp-client featuring ii-like interface
6 #to run: hatexmpp <mountpoint> -d
7 #to configure: echo 'username' > <mountpoint>/config/username
8 #The same operation you need to do with other settings like
9 #server, password, resource, muc_default_nick, jiv_name, jiv_os, jiv_version
11 pkgname=hatexmpp-git
12 pkgver=20101027
13 pkgrel=1
14 pkgdesc="hatexmpp is a xmpp-client featuring ii-like interface"
15 arch=('i686' 'x86_64')
16 url="http://github.com/l29ah/hatexmpp"
17 license=('WTFPL-2')
18 depends=('glib' 'fuse' 'loudmouth')
19 makedepends=('git')
20 md5sums=('')
22 _gitroot="git://github.com/l29ah/hatexmpp.git"
23 _gitname="hatexmpp"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then 
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else 
33     git clone $_gitroot $_gitname
34   fi 
36   msg "GIT checkout done or server timeout"
37   msg "Starting make..."
39   #rm -rf "$srcdir/$_gitname-build"
40   #git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41   cd "$srcdir/$_gitname"
43   #
44   # BUILD HERE
45   #
47   LDFLAGS=""; export LDFLAGS
48   make || return 1
49   cd ${srcdir}
50   mkdir -p ${pkgdir}/usr/{bin,share} || return 1
51   cp -R hatexmpp ${pkgdir}/usr/share/hatexmpp || return 1
52   ln -s /usr/share/hatexmpp/hatexmpp ${pkgdir}/usr/bin/hatexmpp || return 1