--- /dev/null
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+# Maintainer: Thomas Mudrunka <harvie@@email..cz>
+# You can also contact me on http://blog.harvie.cz/
+
+pkgname=ejabberd-mod_admin_extra-svn
+pkgver=1107
+pkgrel=1
+pkgdesc="Additional commands for ejabberdctl"
+arch=(any)
+url="http://www.ejabberd.im/mod_admin_extra"
+license=('GPL')
+depends=(ejabberd)
+makedepends=(erlang subversion)
+options=()
+
+_svntrunk=https://svn.process-one.net/ejabberd-modules
+_svnmod=ejabberd-modules
+md5sums=()
+
+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..."
+
+ [ -d $srcdir/$_svnmod-build ] && rm -r $srcdir/$_svnmod-build
+ cp -r $_svnmod $_svnmod-build
+ cd $_svnmod-build
+
+ #
+ # BUILD
+ #
+ cd mod_admin_extra/trunk
+
+ ./build.sh
+
+ rm -rf ebin/.svn
+ install -d -m 0755 $pkgdir/usr/lib/ejabberd
+ cp -r ebin $pkgdir/usr/lib/ejabberd/ebin
+}