updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / j2j / PKGBUILD
bloba1ed5f7759f6bf70d67dccccb1a93bdda5839d39
1 pkgname=j2j
2 pkgver=128
3 pkgrel=1
4 pkgdesc="jabber -> jabber jabber transport"
5 arch=(i686 x86_64)
6 url="http://wiki.jrudevels.org/Eng:J2J"
7 license=('GPL')
8 depends=('python' 'twisted' 'pyopenssl')
9 backup=(etc/ejabberd/)
10 options=('emptydirs')
11 source=(j2j.rc)
12 md5sums=('ecee7b8540f4cc6504f052cbc0305d8f')
14 _svntrunk=https://svn.jrudevels.org/j2j/trunk
15 _svnmod=j2j
17 build() {
18   cd $srcdir
20   if [ -d $_svnmod/.svn ]; then
21     (cd $_svnmod && svn up -r $pkgver)
22   else
23     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24   fi
26   msg "SVN checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf $srcdir/$_svnmod-build
30   cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
31   cd $srcdir/$_svnmod-build
33   #
34   # BUILD
35   #
36   mkdir -p $pkgdir/usr/share/j2j $pkgdir/etc/ejabberd/ $pkgdir/var/run/j2jt
37   cp *.py *.schema $pkgdir/usr/share/j2j/ && \
38   cp j2j.conf.example $pkgdir/etc/ejabberd/ && \
39   cp $pkgdir/etc/ejabberd/j2j.conf.example $pkgdir/etc/ejabberd/j2j.conf && \
40   ln -s ../../../etc/ejabberd/j2j.conf $pkgdir/usr/share/j2j/j2j.conf
41   install -D -m0755 ../j2j.rc $startdir/pkg/etc/rc.d/$pkgname