# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

pkgname="shocco"
pkgver=1.0
pkgrel=1.2
pkgdesc="Docco-like documentation generator for POSIX shell"
arch=('any')
url="http://rtomayko.github.com/shocco/"
license=('MIT')
depends=('markdown' 'pygmentize')
optdepends=('ronn: builds man pages')

source=("https://github.com/rtomayko/shocco/archive/$pkgver.tar.gz")
sha256sums=('b3454ca818329955043b166a9808847368fd48dbe94c4b819a9f0c02cf57ce2e')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make -j1
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm755 shocco "$pkgdir/usr/bin/shocco"
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}