APKBUILD 1.08 KB
Newer Older
Sören Tempel's avatar
Sören Tempel committed
1 2 3
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc
4
pkgver=1.72
5
pkgrel=2
6 7
pkgdesc="Count lines of code"
url="https://github.com/AlDanial/cloc"
Sören Tempel's avatar
Sören Tempel committed
8
arch="noarch"
9
license="GPL2"
10
depends="perl perl-algorithm-diff perl-regexp-common"
Sören Tempel's avatar
Sören Tempel committed
11 12
makedepends=""
subpackages="$pkgname-doc"
13 14 15
source="https://github.com/AlDanial/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
	disable-submodule-tests.patch"
builddir="$srcdir/$pkgname-$pkgver"
Sören Tempel's avatar
Sören Tempel committed
16

17 18 19 20 21
build() {
	make -C "$builddir"/Unix
}

check() {
22
	make -C "$builddir"/Unix test
Sören Tempel's avatar
Sören Tempel committed
23 24 25
}

package() {
26 27
	cd "$builddir"/Unix
	make DESTDIR="$pkgdir" install
28 29 30

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -Dm644 NEWS README AUTHORS \
31
		"$pkgdir"/usr/share/doc/$pkgname/
Sören Tempel's avatar
Sören Tempel committed
32 33
}

34 35
sha512sums="e83567fcc2703b6de761c44d3b85e4c176eaff9f35419a202bd4c00b5cc9160d39251deb762d57b40aacf4fe6322cf79877032ed29abec2a5f00c1abb8d44021  cloc-1.72.tar.gz
0da21579aee7b073dcff93767289e2ae50dbde50fdfd4b5dc36264cc0aa52be1f42b80f18378e264eef5a0c81eb447013343247781bc571f78c226a5c28e93c2  disable-submodule-tests.patch"