APKBUILD 1.04 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 5
pkgver=1.72
pkgrel=0
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
source="$pkgname-$pkgver.tar.gz::https://github.com/AlDanial/$pkgname/archive/v$pkgver.tar.gz"
14
builddir="$srcdir/$pkgname-$pkgver/Unix"
Sören Tempel's avatar
Sören Tempel committed
15 16

build () {
17
	make -C "$builddir" || return 1
Sören Tempel's avatar
Sören Tempel committed
18 19 20
}

package() {
21 22 23 24 25 26
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -Dm644 NEWS README AUTHORS \
		"$pkgdir"/usr/share/doc/$pkgname/ || return 1
Sören Tempel's avatar
Sören Tempel committed
27 28
}

29 30 31
md5sums="d0e8e19a03f198fc86df2f3d73e788ec  cloc-1.72.tar.gz"
sha256sums="2d2c57478b6c8b77d90d8b2aa278a3bd1f18251f5cf3cfeb017db2c27ad86af2  cloc-1.72.tar.gz"
sha512sums="599ad5664eeb9ca4918e83e2cce5723c2546ad4a160f4a20f5537675c478d859f2f0bac03b271926df477943eb047a4711511a198a3ddc6a20dbc76c868d46e9  cloc-1.72.tar.gz"