blob: 7fa84cd7bf7bcd9b6ebd82c0bb633a5a5a6ded2e (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc
pkgver=1.70
pkgrel=1
pkgdesc="Count lines of code"
url="https://github.com/AlDanial/cloc"
arch="noarch"
license="GPL2"
depends="perl perl-algorithm-diff perl-regexp-common"
depends_dev=""
makedepends=""
install=""
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="74e159c9957a6fba3e93b1501008f0fa cloc-1.70.tar.gz"
sha256sums="fd6e2bf95836578d8e94f2a85ce67f2e0cdf378b8200a02f8ee2a101f45984e9 cloc-1.70.tar.gz"
sha512sums="dd9797a0601e82eed2a04318427db92d7e7ec191e2c9a1ca90add6b33ee253afaa7d7109485edd55beb23db3cdfc5fa67457a4b792c3bda1c2ca79a5110b1359 cloc-1.70.tar.gz"
|