# $Id: PKGBUILD 2967 2009-09-24 16:56:54Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Sergej Pupykin pkgname=ejabberd-mod_archive-svn pkgver=1025 pkgrel=3 pkgdesc="ejabberd message archive module" arch=(any) url="http://www.ejabberd.im/mod_archive" license=('GPL') depends=(ejabberd) makedepends=(erlang subversion) options=() source=(fix-int-to-list.patch) md5sums=('8d599e9a18c3dc7277fdff2abd9b4740') _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_archive/trunk patch -p0 src/mod_archive_webview.erl <$srcdir/fix-int-to-list.patch echo "{'src/mod_archive_webview', [{outdir, \"ebin\"},{i,\"../../ejabberd-dev/trunk/include\"}]}." >>Emakefile sed -i 's#web/##' src/mod_archive_webview.erl ./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 install -d -m0755 $pkgdir/usr/share/ejabberd-mod_archive && \ cp -r src/*.sql $pkgdir/usr/share/ejabberd-mod_archive/ }