#!/bin/sh tce-load -w -i squashfs-tools DESTDIR='/tmp/package' mkdir /tmp/source_package mkdir -p $DESTDIR/usr/local/lib/python3.6/site-packages/ # Create package directory . /etc/init.d/tc-functions PKGDIR=/tmp/`getMajorVer`.x/`getBuild` mkdir -p $PKGDIR/tar.gz $PKGDIR/tcz cd /tmp/source_package wget https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz tar xzvf six-1.11.0.tar.gz cp six-1.11.0/six.egg-info/PKG-INFO $DESTDIR/usr/local/lib/python3.6/site-packages/six-1.11.0-py3.6.egg-info cp six-1.11.0/six.py $DESTDIR/usr/local/lib/python3.6/site-packages/ cd $DESTDIR tar -czf $PKGDIR/tar.gz/python3.6-six.tcz.tar.gz * mksquashfs $DESTDIR $PKGDIR/tcz/python3.6-six.tcz -all-root -info find $DESTDIR -not -type d | sed -e "s#^${DESTDIR}##" > $PKGDIR/tcz/python3.6-six.tcz.list cd $PKGDIR/tcz md5sum python3.6-six.tcz > python3.6-six.tcz.md5.txt echo "python3.6" > python3.6-six.tcz.dep # Cleanup cd /tmp rm -rf $DESTDIR rm -rf /tmp/source_package/