1 # Contributor: fill <mailbox@fillo.ru>
6 pkgdesc="icq transport for ejabberd"
7 url="http://code.google.com/p/pyicqt/"
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')
17 _gitroot='git://gitorious.org/pyicqt/mainline.git'
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."
29 git clone $_gitroot $_gitname
31 git branch --track unstable
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