summaryrefslogtreecommitdiff
path: root/user/cloc/APKBUILD
blob: 5018779fc281e3a7c8b7dbde3d88960985e999e2 (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
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=cloc
pkgver=1.88
pkgrel=0
pkgdesc="Perl utility for counting lines of code in various languages"
url="https://github.com/AlDanial/cloc"
arch="noarch"
license="GPL-2.0+"
depends="perl perl-regexp-common perl-algorithm-diff"
checkdepends="perl-parallel-forkmanager"
makedepends=""
subpackages="$pkgname-doc"
source="https://github.com/AlDanial/cloc/releases/download/$pkgver/cloc-$pkgver.tar.gz"

build() {
	make DESTDIR="$pkgdir" -C Unix doc
}

check() {
	make DESTDIR="$pkgdir" -C Unix test-perl
}

package() {
	make DESTDIR="$pkgdir" -C Unix install
}

sha512sums="323f5ce4876ffe85ff3beb342a0cacb9514df23a6410c0912f048540719c9a038194620a81087377c9894dae2825b494ef7069ce4310f96f6e8cbe488b243a16  cloc-1.88.tar.gz"