updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / nano-syntax-highlighting-git / PKGBUILD
blob26ae8d178602636372dc2349d342127183068812
1 # Maintainer: American_Jesus <american.jesus.pt AT gmail DOT com>
3 _pkgname=nano-syntax-highlighting
4 pkgname=$_pkgname-git
5 pkgver=20111009
6 pkgrel=2
7 pkgdesc="Nano editor syntax highlighting enhancements"
8 arch=('i686' 'x86_64')
9 depends=('nano')
10 makedepends=('git')
11 url="https://github.com/scopatz/nanorc"
12 license=('custom')
13 install=nano-syntax-highlighting.install
14 provides=('nano-syntax-highlighting')
15 conflicts=('nano-syntax-highlighting')
16 source=('nanorc.sample')
17 md5sums=('5e03e434443f93deba375776b8d9b1a8')
19 _gitroot=git://github.com/scopatz/nanorc.git
21 build()
23   cd $srcdir
25   msg "Connecting to GIT server...."
26   
27   if [ -d $pkgname ]; then 
28     cd $pkgname && git pull origin
29     msg "The local files are updated."
30   else 
31     git clone --depth=1 $_gitroot $pkgname
32   fi
34   msg "GIT checkout done or server timeout"
36   mkdir -p $pkgdir/usr/share/$_pkgname
38   find $srcdir/$pkgname/ -name '*.nanorc' | xargs install -D -m644 -t $pkgdir/usr/share/$_pkgname/
40   install -D -m644 $startdir/nanorc.sample $pkgdir/usr/share/$_pkgname/nanorc.sample