1 # Maintainer: Ivan c00kiemon5ter Kanakarakis <ivan.kanak@gmail.com>
5 pkgdesc="literate-programming-style documentation generator written for and in POSIX shell"
7 url="http://rtomayko.github.com/shocco/"
9 depends=('perl-text-markdown' 'python2-pygments')
11 optdepends=('dash: small POSIX compliant shell'
12 'ronn: builds manuals')
16 _gitroot="git://github.com/rtomayko/shocco.git"
21 msg "Connecting to GIT server...."
23 if [[ -d $_gitname ]] ; then
24 cd "$_gitname" && git pull origin
25 msg "The local files are updated."
27 git clone "$_gitroot" "$_gitname"
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 cd "$srcdir/$_gitname"
34 ./configure --prefix=/usr
38 ed -s "$srcdir"/"$_gitname"/shocco <<< $'/^MARKDOWN=/s:\'.*\':\'/usr/bin/vendor_perl/Markdown.pl\':p\nw'
42 install -Dm755 "$srcdir/$_gitname/shocco" "$pkgdir/usr/bin/shocco"
43 install -Dm644 "$srcdir/$_gitname/COPYING" "$pkgdir/usr/share/licenses/shocco/LICENSE"
46 # vim: ft=sh syn=sh et