PKGBUILDs/community/ejabberd-mod_ctlextra-svn/PKGBUILD

46 lines
997 B
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=ejabberd-mod_ctlextra-svn
pkgver=1025
pkgrel=2
pkgdesc="Additional commands for ejabberdctl"
arch=(any)
url="http://www.ejabberd.im/mod_ctlextra"
license=('GPL')
depends=(ejabberd)
makedepends=(erlang subversion)
options=()
_svntrunk=https://svn.process-one.net/ejabberd-modules
_svnmod=ejabberd-modules
build() {
cd $srcdir
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
rm -r $srcdir/$_svnmod-build
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
#
# BUILD
#
cd mod_ctlextra/trunk
./build.sh || return 1
rm -rf ebin/.svn && \
install -d -m 0755 $pkgdir/usr/lib/ejabberd && \
cp -r ebin $pkgdir/usr/lib/ejabberd/ebin || return 1
}