updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / ooc-gtksourceview-git / PKGBUILD
blobbde51c4c1c44607309e204740adb984fd1d70867
1 # Contributor: Scott Olson <scott@scott-olson.org>
3 pkgname=ooc-gtksourceview-git
4 pkgdesc="ooc lang files for gtksourceview"
5 url="http://github.com/nddrylliog/ooc-gtksourceview"
6 license=('LGPL')
7 arch=('i686' 'x86_64')
8 pkgver=20100201
9 pkgrel=1
10 depends=('gtksourceview2' 'shared-mime-info')
11 makedepends=('git')
13 _gitroot='git://github.com/nddrylliog/ooc-gtksourceview.git'
14 _gitname='ooc-gtksourceview'
15 _gitbranch='master'
17 build() {
18   cd "$srcdir"
19         
20   msg "Connecting to GIT server...."
22   if [ -d ${srcdir}/${_gitname} ] ; then
23         cd $_gitname && git pull origin
24         msg "The local files are updated."
25   else
26         git clone $_gitroot $_gitname
27   fi
28   msg "GIT checkout done or server timeout. Preparing sources..."
30   rm -rf ${srcdir}/${_gitname}-build
31   cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
33   msg "Starting make..."
34   cd ${srcdir}/${_gitname}-build
36   install -Dm755 ooc.lang $pkgdir/usr/share/gtksourceview-2.0/language-specs/ooc.lang