Added ejabberd-mod_admin_extra-svn
authorHarvie <tomas@mudrunka.cz>
Sun, 23 Jan 2011 03:54:34 +0000 (04:54 +0100)
committerHarvie <tomas@mudrunka.cz>
Sun, 23 Jan 2011 03:54:34 +0000 (04:54 +0100)
ejabberd-mod_admin_extra-svn/PKGBUILD [new file with mode: 0644]

diff --git a/ejabberd-mod_admin_extra-svn/PKGBUILD b/ejabberd-mod_admin_extra-svn/PKGBUILD
new file mode 100644 (file)
index 0000000..0888f67
--- /dev/null
@@ -0,0 +1,46 @@
+# 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
+}
This page took 0.139975 seconds and 4 git commands to generate.