tce-load -w -i compiletc squashfs-tools intltool gtk2-dev cd /tmp mkdir package mkdir src_package DESTDIR='/tmp/package' wget https://sourceforge.net/projects/yad-dialog/files/yad-0.40.0.tar.xz/download -O yad-0.40.0.tar.xz tar xvf yad-0.40.0.tar.xz cd yad-0.40.0/ export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" ./configure --with-gtk=gtk3 --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 yad-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/yad-doc.tcz.tar.gz * mksquashfs $DESTDIR/doc $PKGDIR/tcz/yad-doc.tcz -all-root -info find $DESTDIR/doc -not -type d | sed -e "s#^${DESTDIR}/doc##" > $PKGDIR/tcz/yad-doc.tcz.list cd .. && rm -rf doc cd $PKGDIR/tcz md5sum yad-doc.tcz > yad-doc.tcz.md5.txt # Create yad-dev.tcz package cd $DESTDIR mkdir dev for i in usr/local/share/aclocal; do tar cpf - $i | (cd dev && tar xvpf - ) rm -rf $i done cd dev tar -czf $PKGDIR/tar.gz/yad-dev.tcz.tar.gz * mksquashfs $DESTDIR/dev $PKGDIR/tcz/yad-dev.tcz -all-root -info find $DESTDIR/dev -not -type d | sed -e "s#^${DESTDIR}/dev##" > $PKGDIR/tcz/yad-dev.tcz.list cd .. && rm -rf dev cd $PKGDIR/tcz md5sum yad-dev.tcz > yad-dev.tcz.md5.txt # Create yad.tcz package cd $DESTDIR strip --strip-all usr/local/bin/* tar -czf $PKGDIR/tar.gz/yad.tcz.tar.gz * mksquashfs $DESTDIR $PKGDIR/tcz/yad.tcz -all-root -info find $DESTDIR -not -type d | sed -e "s#^${DESTDIR}##" > $PKGDIR/tcz/yad.tcz.list cd $PKGDIR/tcz md5sum yad.tcz > yad.tcz.md5.txt # Cleanup cd /tmp rm -rf $DESTDIR rm -rf /tmp/src_package/ rm -fr /tmp/download