# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Christof Musik <christof@senfdax.de>

pkgname=sloccount
pkgver=2.26
pkgrel=11
pkgdesc='Tools for counting physical source lines of code'
url='https://www.dwheeler.com/sloccount/'
license=('GPL')
depends=('perl')
arch=('x86_64')
source=("https://www.dwheeler.com/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b')

package() {
  cd "$pkgname-$pkgver"

  install -dm755 "$pkgdir/usr/bin"
  make CC="gcc $CFLAGS $LDFLAGS $CPPFLAGS" PREFIX="$pkgdir/usr" install
  mv "$pkgdir/usr/share/doc/sloccount-2.26-1" "$pkgdir/usr/share/doc/sloccount"
  chmod 644 "$pkgdir/usr/share/doc/sloccount/"*
}

# vim: ts=2 sw=2 et:
