aboutsummaryrefslogtreecommitdiffstats
path: root/community/cloc/APKBUILD
blob: 9ca7b20acf884257e33b5591af4d0aa1efa38f0c (plain) (blame)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc
pkgver=1.94
pkgrel=0
pkgdesc="Count lines of code"
url="https://github.com/AlDanial/cloc"
arch="noarch"
license="GPL-2.0-or-later Artistic-2.0"
depends="perl perl-algorithm-diff perl-regexp-common
	perl-parallel-forkmanager"
subpackages="$pkgname-doc"
source="https://github.com/AlDanial/cloc/releases/download/v$pkgver/cloc-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/Unix"

build() {
	make
}

check() {
	make
}

package() {
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -Dm644 NEWS README AUTHORS \
		"$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="
97760bd902bc4139d45a4a9b4e9b82762f4b58b82a07884d4a0f3a618ceb07cad82bbde1b0ecf48152615535a0c77875bbee7c8bb8358389c2993ca2e2319c66  cloc-1.94.tar.gz
"