blob: 2c1946c321d8792c872f6a84a06372762f46fb01 (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc
pkgver=1.72
pkgrel=0
pkgdesc="Count lines of code"
url="https://github.com/AlDanial/cloc"
arch="noarch"
license="GPL2"
depends="perl perl-algorithm-diff perl-regexp-common"
makedepends=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/AlDanial/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/Unix"
build () {
make -C "$builddir" || return 1
}
package() {
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
}
md5sums="d0e8e19a03f198fc86df2f3d73e788ec cloc-1.72.tar.gz"
sha256sums="2d2c57478b6c8b77d90d8b2aa278a3bd1f18251f5cf3cfeb017db2c27ad86af2 cloc-1.72.tar.gz"
sha512sums="599ad5664eeb9ca4918e83e2cce5723c2546ad4a160f4a20f5537675c478d859f2f0bac03b271926df477943eb047a4711511a198a3ddc6a20dbc76c868d46e9 cloc-1.72.tar.gz"
|