#!/bin/sh # test we are root if [ "$(id -u)" != "0" ]; then exit 1 fi export CFLAGS="-mtune=generic -Os -pipe -Wno-incompatible-pointer-types -Wno-error=implicit-function-declaration" export CXXFLAGS="-mtune=generic -Os -pipe " P=aterm2 USER=`cat /etc/sysconfig/tcuser` V=git-2025nov17 SRC=aterm SRC2=/usr/local/share/pixmaps/aterm.png LIST="compiletc submitqc libX11-dev libXt-dev libXext-dev ncursesw-terminfo git aterm " for Z in $LIST do su -c "tce-load -i $Z" $USER done cd /tmp git clone https://github.com/wildstar84/aterm.git cd $SRC ./configure --prefix=/usr/local --enable-transparency --with-term=xterm --with-x --with-terminfo=/usr/local/share/terminfo # aterm2 version: 2.00.00 : 01 August 2014 # Source code location: . # Install path: /usr/local/bin # Compiler: gcc # Compiler flags: -mtune=generic -Os -pipe -Wall -DNO_DEBUG_OUTPUT # Background image support : # AfterImage library: supporting image format libraries: without AfterStep MyStyles support # Transparency : enabled # malloc support: system default # The following are set in config.h # utmp support: disabled # set TERM to: xterm # set TERMINFO to: /usr/local/share/terminfo # Type of 16bit: short # 32bit: int # pointer: (same as) long # Please check src/feature.h for further options *** make -j6 # seconds make install DESTDIR=/tmp/aterm2 cd /tmp # doc ###### mkdir -p $P-doc/usr/local/share mv $P/usr/local/share/man $P-doc/usr/local/share/ # main ##### rm -rf $P/usr/local/bin/*menus* rm -rf $P/usr/local/share # they had menus mkdir -p $P/usr/local/share/doc/$P $P/usr/local/share/pixmaps $P/usr/local/share/applications echo '#!/bin/busybox sh # aterm xterm wrapper for Tiny Core Linux 5.x # By bmarkus # v1.1 - November 4, 2014 aterm +tr "$@" ' > $P/usr/local/bin/aterm-xterm chmod 755 $P/usr/local/bin/aterm-xterm echo 'GPL v 3' > $P/usr/local/share/doc/$P/COPYING # desktop stuff ################### it does not matter if png already exists its the same png cp $SRC2 $P/usr/local/share/pixmaps/ chmod 644 $P/usr/local/share/pixmaps/*.png echo '[Desktop Entry] Type=Application Name=Terminal Exec=/usr/local/bin/aterm Icon=aterm X-FullPathIcon=/usr/local/share/pixmaps/aterm.png ' > $P/usr/local/share/applications/aterm2.desktop # tce.install ############# mkdir -p $P/usr/local/tce.installed cat >> $P/usr/local/tce.installed/$P <<'EOF' #!/bin/sh [ -f /usr/local/bin/xterm ] || ln -s /usr/local/bin/aterm-xterm /usr/local/bin/xterm EOF chown -R root:staff $P/usr/local/tce.installed chmod -R 775 $P/usr/local/tce.installed # TCZ them ########### LIST="$P $P-doc" for Z in $LIST do mksquashfs $Z $Z.tcz md5sum $Z.tcz > $Z.tcz.md5.txt cd $Z find . -not -type d | cut -c 2- | sort > /tmp/$Z.tcz.list cd /tmp done ls -hal echo 'Title: aterm2-doc.tcz Description: man page Version: git-2025nov17 Author: old https://github.com/wildstar84/aterm/blob/main/aterm.lsm new Jim Turner xterm by Bela Markus (bmarkus Tinycore) Original-site: https://github.com/wildstar84/aterm.git Copying-policy: GPL v 3 Size: 16K Extension_by: aus9 Tags: terminal Comments: - Change-log: 2025/11/18 v git-2025nov17 on 16x Current: 2025/11/18 ' > $P-doc.tcz.info echo 'man-db.tcz ' > $P-doc.tcz.dep echo 'Title: aterm2.tcz Description: Afterstep Terminal emulator Version: git-2025nov17 Author: old https://github.com/wildstar84/aterm/blob/main/aterm.lsm new Jim Turner xterm by Bela Markus (bmarkus Tinycore) Original-site: https://github.com/wildstar84/aterm.git Copying-policy: GPL v 3 Size: 80K Extension_by: aus9 Tags: terminal Comments: Note this is a non-UTF8 virtual terminal Try mononoki-ttf-fonts for easy tell zero to O for larger fonts try $ aterm -fn 12x24 a number of desktops can have kb shortcuts for that. This TCE conflicts with aterm Change-log: 2025/11/18 v git-2025nov17 on 16x Current: 2025/11/18 ' > $P.tcz.info readelf -d $P/usr/local/bin/aterm | grep 'NEEDED' #libSM.so.6]libSM #libICE.so.6]libICE #libX11.so.6]libX11 #libXext.so.6]libXext echo 'libSM.tcz libICE.tcz libXext.tcz' > $P.tcz.dep submitqc --libs rm -rf *.zsync