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"
10 depends=('gtksourceview2' 'shared-mime-info')
13 _gitroot='git://github.com/nddrylliog/ooc-gtksourceview.git'
14 _gitname='ooc-gtksourceview'
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."
26 git clone $_gitroot $_gitname
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