blob: 7249c2afdd4e5344b2221458c40e8fd014b74e3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc
pkgver=1.76
pkgrel=0
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/v$pkgver/$pkgname-$pkgver.tar.gz
disable-01_opts.patch
disable-test-perl.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
make -C "$builddir"/Unix
}
check() {
# test-perl requires perl-parallel-forkmanager which is
# currently in testing. Therefore we only run a subset of the
# testsuite for now.
make -B -C "$builddir"/Unix test-pod test-code
}
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="3f16f084be1828557e4120a8e41b276336ac240c5de4dc765066277d848ce9af20f31b36ec4beb863066d8b3e9287ea0e0b2a8f1abd15532957f53d2d3935ecd cloc-1.76.tar.gz
10039c23d06f16f3c44427ee0f0e5d16dd05d2c5364145f57c1e5de94227387907f9ecebe7d42fc976599a8c1814e51d5f0a4eddef154222c5138cbcce777c4a disable-01_opts.patch
db35af1184fbf03ba4089ae5e9fbfc868b82a0487ee1bf0a284e40faba356e91bcb725c682cbf52c8f76ed1d6883f9ce86200bb65cf8175f9630ebe1492c890e disable-test-perl.patch"
|