PKGBUILDs/community/ejabberd-mod_mysql-svn/PKGBUILD
2009-10-09 21:15:33 -05:00

45 lines
989 B
Bash

# $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_mysql-svn
pkgver=1025
pkgrel=2
pkgdesc="mysql support module for ejabberd"
arch=(any)
url="http://www.ejabberd.im/ejabberd-modules"
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 mysql/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
}