aboutsummaryrefslogtreecommitdiffstats
path: root/community/cloc/APKBUILD
blob: bfd9845dd684e12832a5c82ec3ae30b9c53bcba1 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc
pkgver=1.78
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"
makedepends=""
subpackages="$pkgname-doc"
source="https://github.com/AlDanial/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz
	disable-01_opts.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="e5824d0a0796302173974e516848abdb4e653c1df4d660bf60b51e766ad09239b8b72276e2cb6b57771399dadfd1c7eb60218dc62b80cebdeebf607150baeb35  cloc-1.78.tar.gz
10039c23d06f16f3c44427ee0f0e5d16dd05d2c5364145f57c1e5de94227387907f9ecebe7d42fc976599a8c1814e51d5f0a4eddef154222c5138cbcce777c4a  disable-01_opts.patch"