From: Harvie Date: Sun, 23 Jan 2011 03:54:34 +0000 (+0100) Subject: Added ejabberd-mod_admin_extra-svn X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=47dfb5b6adee3e8c4b2897cdd00f4ca7bf2c8567;p=mirrors%2FArchLinux-Packages.git Added ejabberd-mod_admin_extra-svn --- diff --git a/ejabberd-mod_admin_extra-svn/PKGBUILD b/ejabberd-mod_admin_extra-svn/PKGBUILD new file mode 100644 index 0000000..0888f67 --- /dev/null +++ b/ejabberd-mod_admin_extra-svn/PKGBUILD @@ -0,0 +1,46 @@ +# Contributor: Thomas Mudrunka +# Maintainer: Thomas Mudrunka +# 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 +}