# Contributor: Lucas Ramage # Maintainer: Lucas Ramage pkgname=sloccount pkgver=2.26 pkgrel=3 pkgdesc="Tool for counting physical Source Lines of Code (SLOC)" url="https://dwheeler.com/sloccount" arch="all" license="GPL-2.0-or-later" makedepends="flex perl" subpackages="$pkgname-doc" source="https://dwheeler.com/sloccount/sloccount-$pkgver.tar.gz" prepare() { default_prepare sed -i -e '/^DOC_DIR/ { s/-$(RPM_VERSION)//g }' makefile } check() { make test } package() { mkdir -p "$pkgdir"/usr/bin make PREFIX=/usr \ INSTALL_DIR="$pkgdir/usr/bin" \ DOC_DIR="$pkgdir/usr/share/doc/$pkgname" \ MAN_DIR="$pkgdir/usr/share/man" \ install } sha512sums=" ed6ab315a56dbdc86c654b94e790c9ea9e2dcad0db26b63c0973c33eb7fa634b4ade0a1f3c6ccfd5172ea95f648c1dd3b0ae2575b0aa44b3fec708c24a6aca54 sloccount-2.26.tar.gz "