contrib/tcc/Pkgfile
2007-01-20 12:21:06 +10:00

29 lines
743 B
Plaintext

# Description: Tiny C Compiler
# URL: http://fabrice.bellard.free.fr/tcc/
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
# Packager: James Mills, prologic at shortcircuit dot net dot au
#
# Depends on:
name=tcc
version=0.9.23
release=1
source=(http://fabrice.bellard.free.fr/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr
make CFLAGS="$CFLAGS"
make prefix=$PKG/usr \
bindir=$PKG/usr/bin \
tccdir=$PKG/usr/lib/tcc \
libdir=$PKG/usr/lib \
includedir=$PKG/usr/include \
mandir=$PKG/usr/man \
docdir=$PKG/usr/share/tcc/doc \
install
chmod 644 $PKG/usr/man/man1/tcc.1
rm -rf $PKG/usr/share
chown -R root:root $PKG
}