build_ttf-bitstream-vera() { HERE=`pwd` NAME=ttf-bitstream-vera VER=1.10 BUILDEPS="compiletc.tcz" #DEPS= if [ ! -f ttf-bitstream-vera-1.10.tar.gz ]; then wget http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ttf-bitstream-vera-1.10.tar.gz fi for I in `echo "$BUILDDEPS"`; do DEPNAME=`basename "$I" .tcz` if [ ! -f /usr/local/tce.installed/"$DEPNAME" ]; then if [ -f "$TCEDIR"/"$I" ]; then if su tc -c "tce-load -i "$I""; then echo "$I" loaded locally" else echo ""$I" failed to load, exiting.." exit 1 fi else if su tc -c "tce-load -iw "$I""; then echo '"$I" loaded from repo" else echo ""$I" failed to load, exiting.." exit 1 fi fi fi done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" tar xvf "$NAME"-"$VER".tar.gz cd "$NAME"-"$VER" install -d "$PKGPATH"/share/fonts/ttf-bitstream-vera install -m644 *.ttf "$PKGPATH"/share/fonts/ttf-bitstream-vera/ cd "$HERE" touch "$TMPDIR"/"$NAME" }