1 # Maintainer: American_Jesus <american.jesus.pt AT gmail DOT com>
3 _pkgname=nano-syntax-highlighting
7 pkgdesc="Nano editor syntax highlighting enhancements"
11 url="https://github.com/scopatz/nanorc"
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
25 msg "Connecting to GIT server...."
27 if [ -d $pkgname ]; then
28 cd $pkgname && git pull origin
29 msg "The local files are updated."
31 git clone --depth=1 $_gitroot $pkgname
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