blob: 3fc21c96b7e7ca642e3456d376fe6393e86033a8 (
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
|
# Contributor: Johannes Dewender arch at JonnyJD dot net
pkgname=cccc
pkgver=3.1.4
pkgrel=4
pkgdesc="C and C++ Code Counter, code metrics also for Ada and Java files"
arch=('i686' 'x86_64')
url="http://cccc.sourceforge.net/"
depends=('gcc-libs')
license=('GPL')
source=(https://downloads.sourceforge.net/sourceforge/cccc/$pkgname-$pkgver.tar.gz
gcc47.patch)
md5sums=('7bd3ad868913a0beab2fde931737f928'
'e1d2cb39fcac3f3c14eaff4f1e8f2825')
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -e 's/su root -c "make -f install.mak"/make -f install.mak/' \
-e 's/all : pccts cccc test install/all : pccts cccc test/' \
-i makefile
sed -e 's:/usr/local/bin:'$pkgdir'/usr/bin:' \
-e 's/\$(MKDIR)/\$(MKDIR) -p/' -i install/install.mak
patch -p1 < ../gcc47.patch
make -j 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|