# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=cloc pkgver=1.74 pkgrel=1 pkgdesc="Count lines of code" url="https://github.com/AlDanial/cloc" arch="noarch" license="GPL-2.0" depends="perl perl-algorithm-diff perl-regexp-common" makedepends="" subpackages="$pkgname-doc" source="https://github.com/AlDanial/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz disable-submodule-tests.patch" builddir="$srcdir/$pkgname-$pkgver" build() { make -C "$builddir"/Unix } check() { make -C "$builddir"/Unix test } package() { cd "$builddir"/Unix make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ install -Dm644 NEWS README AUTHORS \ "$pkgdir"/usr/share/doc/$pkgname/ } sha512sums="456ff10c50673326e0b80d2e0b5965fba19c5c868e880108647d5182e048e62bdd734ce485386a561163d8dab81551101cbc5dcc13088400fe0a14ad500e1cbf cloc-1.74.tar.gz 74a9e7db8ebe8194928682882d60fdaef9cb7a5cdadffe8e444f8e7b82338e0c7cb5a3da6b2ac4a2f922bc6a564234ec8426a824d1634db432c9eddd0206c003 disable-submodule-tests.patch"