24 lines
719 B
Bash
24 lines
719 B
Bash
# Contributer: Baruch Burstein <bmburstein at gmail dot com>
|
|
|
|
pkgname=cloc
|
|
pkgver=2.06
|
|
pkgrel=1
|
|
pkgdesc="Count lines of code"
|
|
arch=('any')
|
|
url="https://github.com/AlDanial/cloc"
|
|
license=('GPL')
|
|
depends=('perl' 'perl-Algorithm-Diff' 'perl-Regexp-Common' 'perl-Parallel-ForkManager')
|
|
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/AlDanial/cloc/archive/v${pkgver}.tar.gz)
|
|
sha256sums=('10d78427fda66aaa10ec733adb03d910c49376fe9068aacebb17aa657a7a3a05')
|
|
noextract=(${pkgname}-${pkgver}.tar.gz)
|
|
|
|
prepare() {
|
|
[[ -d ${pkgname}-${pkgver} ]] && rm -rf ${pkgname}-${pkgver}
|
|
tar -xzvf ${pkgname}-${pkgver}.tar.gz -C ${srcdir} || true
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}/Unix
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|