# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=cloc pkgver=1.72 pkgrel=1 pkgdesc="Count lines of code" url="https://github.com/AlDanial/cloc" arch="noarch" license="GPL2" depends="perl perl-algorithm-diff perl-regexp-common" makedepends="" subpackages="$pkgname-doc" source="https://github.com/AlDanial/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz disable-submodule-tests.patch" builddir="$srcdir/$pkgname-$pkgver" build() { make -C "$builddir"/Unix } check() { make -C "$builddir"/Unix } 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="e83567fcc2703b6de761c44d3b85e4c176eaff9f35419a202bd4c00b5cc9160d39251deb762d57b40aacf4fe6322cf79877032ed29abec2a5f00c1abb8d44021 cloc-1.72.tar.gz 0da21579aee7b073dcff93767289e2ae50dbde50fdfd4b5dc36264cc0aa52be1f42b80f18378e264eef5a0c81eb447013343247781bc571f78c226a5c28e93c2 disable-submodule-tests.patch"