#!/bin/sh ### build my info/dep file(s) and copy into /tmp before running script tce-load -i compiletc submitqc4 wget tce-load -i libxslt perl5 tce-load -i libxcb-dev # I prefer wget to use no clobber as I retest the script # download unpack libx11-xcb ############# tcz name is WRONG but I can't change it?? cd /tmp /usr/local/bin/wget -nc http://xorg.freedesktop.org/releases/individual/lib/libX11-1.5.0.tar.gz gunzip libX11-1.5.0.tar.gz tar xvf libX11-1.5.0.tar # extension wiki to cheat off export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" export LDFLAGS="-Wl,-O1" # create folder cd libX11-1.5.0/ ./configure --prefix=/usr/local --enable-loadable-i18n make -j3 make DESTDIR=/tmp/libx11-xcb install # doc ######## # only optional dep inkscape to view svg files cd /tmp mkdir -p libx11-xcb-doc/usr/local/share mv libx11-xcb/usr/local/share/doc libx11-xcb-doc/usr/local/share mv libx11-xcb/usr/local/share/man libx11-xcb-doc/usr/local/share # needs modified MIT license cd /tmp mkdir -p libx11-xcb-doc/usr/local/share/doc/libx11-xcb cp -f libX11-1.5.0/COPYING libx11-xcb/usr/local/share/doc/libx11-xcb mksquashfs libx11-xcb-doc libx11-xcb-doc.tcz md5sum libx11-xcb-doc.tcz > libx11-xcb-doc.tcz.md5.txt cd libx11-xcb-doc find usr -not -type d > libx11-xcb-doc.tcz.list mv -f libx11-xcb-doc.tcz.list /tmp # locale not tested ################## cd /tmp mkdir -p libx11-xcb-locale/usr/local mv libx11-xcb/usr/local/share libx11-xcb-locale/usr/local # needs modified MIT license cd /tmp mkdir -p libx11-xcb-locale/usr/local/share/doc/libx11-xcb cp -f libX11-1.5.0/COPYING libx11-xcb/usr/local/share/doc/libx11-xcb mksquashfs libx11-xcb-locale libx11-xcb-locale.tcz md5sum libx11-xcb-locale.tcz > libx11-xcb-locale.tcz.md5.txt cd libx11-xcb-locale find usr -not -type d > libx11-xcb-locale.tcz.list mv -f libx11-xcb-locale.tcz.list /tmp # tcz ########## # needs modified MIT license cd /tmp mkdir -p libx11-xcb/usr/local/share/doc/libx11-xcb cp -f libX11-1.5.0/COPYING libx11-xcb/usr/local/share/doc/libx11-xcb mksquashfs libx11-xcb libx11-xcb.tcz md5sum libx11-xcb.tcz > libx11-xcb.tcz.md5.txt cd libx11-xcb find usr -not -type d > libx11-xcb.tcz.list mv -f libx11-xcb.tcz.list /tmp # finish off cd /tmp submitqc4