#!/bin/sh echo "Don't forget to update this script with the change-log! Press ENTER to start..." read NAME="fbterm" VERSION="1.7.0" SOURCE="http://fbterm.googlecode.com/files/fbterm-$VERSION.tar.gz" CONFIGURE="--prefix=/usr/local" DATE=`date '+%Y/%m/%d'` export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" export LDFLAGS="-Wl,-O1" echo "Downloading essential packages..." tce-load -wi compiletc squashfs-tools-4.x fontconfig fontconfig-dev gpm gpm-dev libxft libxft-dev libx86 cd /tmp/ wget $SOURCE sudo rm -rf $NAME-$VERSION 2>/dev/null sudo rm /tmp/$NAME.tcz /tmp/$NAME.tcz.list /tmp/$NAME.tcz.md5.txt /tmp/$NAME.tcz.dep 2>/dev/null sudo rm -rf /tmp/$NAME 2>/dev/null sudo rm /tmp/$NAME-doc.tcz /tmp/$NAME-doc.tcz.list /tmp/$NAME-doc.tcz.md5.txt /tmp/$NAME-doc.tcz.dep 2>/dev/null sudo rm -rf /tmp/$NAME-doc 2>/dev/null tar xvfz $NAME-$VERSION.tar.gz cd $NAME-1.7 echo " Starting ./configure $CONFIGURE" ./configure $CONFIGURE echo "Press ENTER to continue... " read make -j3 # make install will fail if tic command is not found, that's why we make a dummy tic for him :) sudo echo "echo skipping tic $*" > /tmp/tic sudo mv /tmp/tic /usr/local/bin/tic sudo chmod +x /usr/local/bin/tic echo " Starting make install to: /tmp/$NAME" sudo make DESTDIR=/tmp/$NAME install-strip cd /tmp/$NAME sudo find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null sudo find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null sudo rm -rf /tmp/$NAME/var sudo rm -rf /tmp/$NAME/usr/local/include mkdir -p /tmp/$NAME-doc/usr/local/share cd /tmp/$NAME/usr/local sudo mv share /tmp/$NAME-doc/usr/local/ echo "Creating package..." cd /tmp/ sudo mksquashfs $NAME $NAME.tcz sudo md5sum $NAME.tcz > $NAME.tcz.md5.txt cd $NAME sudo find usr -not -type d > ../$NAME.tcz.list cd /tmp/ SIZE="`du -k $NAME.tcz|cut -f1`k" sudo echo "Title: $NAME.tcz Description: FbTerm Version: $VERSION Author: Google Code username: zgchan317 Original-site: http://code.google.com/p/fbterm/ Copying-policy: GPLv2 Size: $SIZE Extension_by: andriscom Comments: FbTerm is a fast terminal emulator for linux with frame buffer device. Features include: * mostly as fast as terminal of linux kernel while accelerated scrolling is enabled on framebuffer device * select font with fontconfig and draw text with freetype2, same as Qt/Gtk+ based GUI apps * dynamicly create/destroy up to 10 windows initially running default shell * record scrollback history for every window * auto-detect current locale and convert text encoding, support double width scripts like Chinese, Japanese etc * switch between configurable additional text encodings with hot keys on the fly * copy/past selected text between windows with mouse when gpm server is running * change the orientation of screen display, a.k.a. screen rotation * lightweight input method framework with client-server architecture * background image for eye candy Built with CFLAGS: -march=i486 -mtune=i686 -Os -pipe Built with CXXFLAGS: -march=i486 -mtune=i686 -Os -pipe Built with LDFLAGS: -Wl,-O1 Built with the following options: ./configure $CONFIGURE Check whether accelerated scrolling is enabled or not: fbterm -v -> The message with: \"scrolling: redraw\" means fast scrolling is disabled, otherwise enabled. To start FbTerm with a custom font for example: fbterm --font-names=\"Bitstream Vera Sans Mono\" --font-height=16 (You need the ttf-bitstream-vera.tcz extension for this font) Note: You will need Xlibs.gz if you are using MicroCore. Source: $SOURCE Change-log: $DATE Version: $VERSION Current: $DATE Version: $VERSION " > $NAME.tcz.info sudo echo "fontconfig.tcz gpm.tcz libxft.tcz libx86.tcz " > $NAME.tcz.dep echo "Creating doc package..." cd /tmp/ sudo mksquashfs $NAME-doc $NAME-doc.tcz sudo md5sum $NAME-doc.tcz > $NAME-doc.tcz.md5.txt cd $NAME-doc sudo find usr -not -type d > ../$NAME-doc.tcz.list cd /tmp/ SIZE="`du -k $NAME-doc.tcz|cut -f1`k" sudo echo "Title: $NAME-doc.tcz Description: FbTerm man pages Version: $VERSION Author: Google Code username: zgchan317 Original-site: http://code.google.com/p/fbterm/ Copying-policy: GPLv2 Size: $SIZE Extension_by: andriscom Comments: Manual entry files for FbTerm $VERSION. Source: $SOURCE Change-log: $DATE Version: $VERSION Current: $DATE Version: $VERSION " > $NAME-doc.tcz.info sudo echo "$NAME.tcz " > $NAME-doc.tcz.dep cd /tmp/ mkdir packages 2>/dev/null sudo rm packages/$NAME.tar.gz 2>/dev/null tar zcf packages/$NAME.tar.gz $NAME.tcz* sudo rm packages/$NAME-doc.tar.gz 2>/dev/null tar zcf packages/$NAME-doc.tar.gz $NAME-doc.tcz* echo " Run bcrypt on /tmp/packages/*.tar.gz... give password: tinycore" echo "Run the extension_audit.sh and reboot a clean system to try the packages!" echo "Send it to: tcesubmit@gmail.com"