blob: 0198c157e8b613c66d2bfe68e216393deea62e98 (
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
34
35
36
37
38
39
40
41
42
43
44
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc
pkgver=1.64
pkgrel=0
pkgdesc="Count Lines of Code"
url="http://cloc.sourceforge.net/"
arch="noarch"
license="GPL"
depends="perl"
depends_dev=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.gz
perl522.patch" # See https://sourceforge.net/p/cloc/bugs/135/
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
local i=
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;;
esac
done
}
build () {
make -C "$_builddir" || return 1
}
package() {
make DESTDIR="$pkgdir" -C "$_builddir" \
install || return 1
}
md5sums="ef5bac179f64bb2af1a6d67c2b0f7194 cloc-1.64.tar.gz
3d43994945cc7304cdcb27614d7a11a3 perl522.patch"
sha256sums="309701142f54ee5b244307dec2d07848b71af9b9fee01437d3f7440193f975f0 cloc-1.64.tar.gz
5600b8b5a03add484079d8a22cd6f8ae80e29c44a8583e3f4302ad3730513036 perl522.patch"
sha512sums="2532c8f57a5d9b10a03fe8056708b79f7eb588831dec4b89ac85f354049cdf1e150a0a0c1add359831a1d89a0ed8ac56092ff31e54f4ccfb9491c21b50a960b6 cloc-1.64.tar.gz
3f4f421db0cfac693eab632dc143fe6ee70dd189164a93b2d2a919b0147923d6caa9dc1c553bffa9e8adb7b65b7765508306540ac4f11290013ef7617e966d7a perl522.patch"
|