updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / gedit-classbrowser-git / PKGBUILD
blob634ef82b0860ddacd0d96528682abb61767afca4
1 #Contributor: Mineo <the_mineo at web dot de>
3 pkgname=gedit-classbrowser-git
4 provides=gedit-classbrowser
5 conflicts=('gedit-classbrowser')
6 pkgver=20100305
7 pkgrel=1
8 pkgdesc="development version of gedit-classbrowser"
9 url="http://github.com/FooBarWidget/gedit-class-browser-plugin"
10 license="GPLv2+"
11 arch=('i686' 'x86_64')
12 depends=('gedit')
13 makedepends=('git')
15 _gedit_dir="${pkgdir}/usr/lib/gedit-2/"
16 _gedit_plugins_dir="${_gedit_dir}/plugins/"
18 _gitroot="git://github.com/FooBarWidget/gedit-class-browser-plugin.git"
19 _gitname="gedit-class-browser-plugin"
21 build() {
22         cd $startdir/src
23         msg "Connecting to $_gitroot server..."
25         if [ -d $startdir/src/$_gitname ] ; then
26                 cd $_gitname && git pull origin
27                 msg "The local files are updated."
28         else
29                 git clone $_gitroot
30         fi
32         msg "Git checkout done or server timeout"
33         msg "Copying files..."
35         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
36         cd $startdir/src/$_gitname-build
38     mkdir -p $_gedit_plugins_dir
39     cp -r classbrowser classbrowser.gedit-plugin $_gedit_plugins_dir || return 1