Initial PKGBUILD status as of 28.11.2014

This commit is contained in:
Jaroslav Lichtblau 2014-11-28 20:17:14 +01:00
commit 46e2b0920c
2 changed files with 42 additions and 0 deletions

14
.SRCINFO Normal file
View file

@ -0,0 +1,14 @@
pkgbase = codemetre
pkgdesc = A console-based tool counting lines of code in a file
pkgver = 0.29.2
pkgrel = 1
url = http://wiki.github.com/seventh/codemetre
arch = i686
arch = x86_64
license = GPL3
depends = glibc
source = http://codemetre.free.fr/codemetre-0.29.2.tar.bz2
md5sums = cad68e30055f49155c345e69429afac2
pkgname = codemetre

28
PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
pkgname=codemetre
pkgver=0.29.2
pkgrel=1
pkgdesc="A console-based tool counting lines of code in a file"
arch=('i686' 'x86_64')
url="http://wiki.github.com/seventh/codemetre"
license=('GPL3')
depends=('glibc')
source=(http://codemetre.free.fr/$pkgname-$pkgver.tar.bz2)
md5sums=('cad68e30055f49155c345e69429afac2')
build() {
cd ${srcdir}/$pkgname-$pkgver/src/c
gcc ${CFLAGS} -Wall -c luat_$pkgname.c
gcc ${CFLAGS} -Wall -o $pkgname luat_$pkgname.o -lm
install -Dm755 $pkgname ${pkgdir}/usr/bin/$pkgname
cd ${srcdir}/$pkgname-$pkgver
install -d ${pkgdir}/usr/share/{doc,man}
cp -rf doc/ ${pkgdir}/usr/share/doc/$pkgname/
cp -rf i18n/ ${pkgdir}/usr/share/locale/
cp -rf man/ ${pkgdir}/usr/share/man/man1/
}