diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9d3460c9e94a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = c_count + pkgdesc = Counts lines, statements, other simple measures of C/C++ source programs. + pkgver = 7.12 + pkgrel = 1 + url = http://invisible-island.net/c_count/ + arch = i686 + arch = x86_64 + license = custom + conflicts = sloccount + source = ftp://invisible-island.net/c_count/c_count-7.12.tgz + md5sums = 09dca0f2fc524faa1f0a4573a982f703 + +pkgname = c_count + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6ad8d3e7eaf2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Bert Muennich <ber.t at gmx.com> + +pkgname=c_count +pkgver=7.12 +pkgrel=1 +pkgdesc="Counts lines, statements, other simple measures of C/C++ source programs." +arch=('i686' 'x86_64') +url="http://invisible-island.net/c_count/" +license=('custom') +depends=() +conflicts=('sloccount') +source=(ftp://invisible-island.net/${pkgname}/${pkgname}-${pkgver}.tgz) +md5sums=('09dca0f2fc524faa1f0a4573a982f703') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --mandir=/usr/share/man + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -D -m 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +} |