# $Id: PKGBUILD 136055 2015-06-28 19:22:38Z foutrelis $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Diogo Ferreira <diogo@underdev.org>

pkgname=cloc
pkgver=1.64
pkgrel=1
pkgdesc="Count Lines of Code"
arch=('any')
url="http://cloc.sourceforge.net/"
license=('GPL')
depends=('perl')
source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname/v$pkgver/$pkgname-$pkgver.pl
        perl522.patch)
sha256sums=('79edea7ea1f442b1632001e23418193ae4571810e60de8bd25e491036d60eb3d'
            '57e73b9b18376edc6c37426cb3cfca1e84ae49b4ede52e21a6ae2b8aa17b949b')

package() {
  cd "$srcdir"

  install -D $pkgname-$pkgver.pl "$pkgdir/usr/bin/$pkgname"

  # https://sourceforge.net/p/cloc/bugs/135/
  patch -N -i perl522.patch "$pkgdir/usr/bin/$pkgname"
}

# vim:set ts=2 sw=2 et:
