tce-load -w -i compiletc git autoconf automake squashfs-tools cd /tmp mkdir package mkdir src_package DESTDIR='/tmp/package' git clone https://github.com/chiku/mjwm.git git checkout fce85d159aed98ccbb21b856051e0045d129e5a7 cd mjwm export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" ./autogen.sh ./configure --prefix=/usr/local/ make make DESTDIR=/tmp/package install-strip # Create package directory . /etc/init.d/tc-functions PKGDIR=/tmp/`getMajorVer`.x/`getBuild` mkdir -p $PKGDIR/tar.gz $PKGDIR/tcz # Create mjwm-doc.tcz package cd $DESTDIR mkdir doc for i in usr/local/share/man; do tar cpf - $i | (cd doc && tar xvpf - ) rm -rf $i done cd doc tar -czf $PKGDIR/tar.gz/mjwm-doc.tcz.tar.gz * mksquashfs $DESTDIR/doc $PKGDIR/tcz/mjwm-doc.tcz -all-root -info find $DESTDIR/doc -not -type d | sed -e "s#^${DESTDIR}/doc##" > $PKGDIR/tcz/mjwm-doc.tcz.list cd .. && rm -rf doc cd $PKGDIR/tcz md5sum mjwm-doc.tcz > mjwm-doc.tcz.md5.txt # Create mjwm.tcz package cd $DESTDIR strip --strip-all usr/local/bin/* tar -czf $PKGDIR/tar.gz/mjwm.tcz.tar.gz * mksquashfs $DESTDIR $PKGDIR/tcz/mjwm.tcz -all-root -info find $DESTDIR -not -type d | sed -e "s#^${DESTDIR}##" > $PKGDIR/tcz/mjwm.tcz.list cd $PKGDIR/tcz md5sum mjwm.tcz > mjwm.tcz.md5.txt # Cleanup cd /tmp rm -rf $DESTDIR rm -rf /tmp/src_package/ rm -fr /tmp/download