aboutsummaryrefslogtreecommitdiffstats
path: root/community/cloc/APKBUILD
blob: 4abed10dacd90ca20da55c5eac0e66afe36c779b (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.80
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/v$pkgver/$pkgname-$pkgver.tar.gz
	disable-git-tests.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="3f41a0e2bd4becbb393e24834c45d9998217443d5c6d0478be5ce4f9506bb8dcb44088ce4a2c75c06cb6af47b4432f3dc58db9009f9a350a00dd80802109117f  cloc-1.80.tar.gz
57c645db88bd83a06c32a38311b5f5a8cb0b86af454f20c7f4ce4311cc87932f8a61de381d5ca9f7189271034b487f2cb35f1d8568674f772d2969fb2e4e9cac  disable-git-tests.patch"