APKBUILD 1.06 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.70
5
pkgrel=1
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 13 14
depends_dev=""
makedepends=""
install=""
subpackages="$pkgname-doc"
15
source="$pkgname-$pkgver.tar.gz::https://github.com/AlDanial/$pkgname/archive/v$pkgver.tar.gz"
Sören Tempel's avatar
Sören Tempel committed
16

17
builddir="$srcdir"/$pkgname-$pkgver/Unix
Sören Tempel's avatar
Sören Tempel committed
18
build () {
19
	make -C "$builddir" || return 1
Sören Tempel's avatar
Sören Tempel committed
20 21 22
}

package() {
23 24 25 26 27 28
	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
29 30
}

31 32 33
md5sums="74e159c9957a6fba3e93b1501008f0fa  cloc-1.70.tar.gz"
sha256sums="fd6e2bf95836578d8e94f2a85ce67f2e0cdf378b8200a02f8ee2a101f45984e9  cloc-1.70.tar.gz"
sha512sums="dd9797a0601e82eed2a04318427db92d7e7ec191e2c9a1ca90add6b33ee253afaa7d7109485edd55beb23db3cdfc5fa67457a4b792c3bda1c2ca79a5110b1359  cloc-1.70.tar.gz"