1 # Contributor: Jonas Haag <jonas@lophus.org>
3 pkgname=gedit-multi-edit-svn
6 pkgdesc="A gedit plugin that allows simulaneous editing of multiple parts of a document"
8 url="http://jon-walsh.com/journal/multi-edit/"
11 makedepends=('subversion')
13 _svnroot="http://svn.jon-walsh.com/multi-edit/trunk/"
16 _gedit_dir="${pkgdir}/usr/lib/gedit-2/"
17 _gedit_plugins_dir="${_gedit_dir}/plugins/"
21 msg "Checking out from SVN..."
23 if [ -d $_svnname ] ; then
24 cd $_svnname && svn up
25 msg "The local files are updated."
27 svn co $_svnroot $_svnname
30 msg "SVN checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_svnname-build"
35 cp -r "$srcdir/$_svnname" "$srcdir/$_svnname-build"
36 cd "$srcdir/$_svnname-build"
38 msg "Copying files..."
39 mkdir -p $_gedit_plugins_dir
40 cp -r multi_edit multi_edit.gedit-plugin $_gedit_plugins_dir || return 1