updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyicqt-git / PKGBUILD
blob623e01fe7590f4a93863da973c0e62f30c871278
1 # Contributor: fill <mailbox@fillo.ru>
3 pkgname=pyicqt-git
4 pkgver=20090515
5 pkgrel=1
6 pkgdesc="icq transport for ejabberd"
7 url="http://code.google.com/p/pyicqt/"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 depends=('python' 'twisted')
11 replaces=('pyicqt-git' 'pyicqt' 'pyicq-t-svn')
12 provides=('pyicqt-git' 'pyicqt' 'pyicq-t-svn')
13 conflicts=('pyicqt-git' 'pyicqt' 'pyicq-t-svn')
14 source=('pyicqt.rc')
15 md5sums=()
17 _gitroot='git://gitorious.org/pyicqt/mainline.git'
18 _gitname='pyicqt'
20 build() {
21     cd $startdir/src
23     msg "Connecting to GIT server..."
25     if [ -d $startdir/src/$_gitname ] ; then
26         cd $_gitname && git pull
27         msg "The local files are updated."
28     else
29         git clone $_gitroot $_gitname
30         cd $_gitname
31     git branch --track unstable
32     git checkout unstable
33     fi
35     install -d -m0755 $startdir/pkg/usr/lib/$_gitname
36     install -d -m0755 $startdir/pkg/etc/ejabberd
37     install -d -m0755 $startdir/pkg/var/spool/$_gitname
39     cp -R ./* $startdir/pkg/usr/lib/$_gitname
40     cp $startdir/pkg/usr/lib/$_gitname/config_example.xml $startdir/pkg/etc/ejabberd/$_gitname.xml 
41     mv $startdir/pkg/usr/lib/$_gitname/config_example.xml $startdir/pkg/etc/ejabberd/${_gitname}_example.xml 
42     ln -s /etc/ejabberd/$_gitname.xml $startdir/pkg/usr/lib/$_gitname/config.xml
43     install -D -m0755 ../pyicqt.rc $startdir/pkg/etc/rc.d/$_gitname