SUBPKGNAME=python-tools-$VERSION-s390-$BUILD TAG=OPT subinstall() { echo "Nothing to install for python-tools." } subspecial() { mkdir -p $SUBPKG/usr/doc/python-$VERSION \ $SUBPKG/usr/lib/python2.3/site-packages cd $SUBPKG/usr/lib/python2.3/ tar -yxvf $CWD/Python-$VERSION.tar.bz2 Python-$VERSION/Tools/ mv Python-$VERSION/Tools/* $SUBPKG/usr/lib/python2.3/site-packages/ mv $SUBPKG/usr/lib/python2.3/site-packages/README \ $SUBPKG/usr/doc/python-$VERSION/README.python-tools rm -rf Python-$VERSION/ find . -type d -name CVS -exec rm -r {} \; mkdir -p $SUBPKG/usr/bin chown -R root.root $SUBPKG/ chown -R root.bin $SUBPKG/usr/bin cd $SUBCTL cat $CWD/slack-desc.python-tools > slack-desc cat << EOF >> doinst.sh ( cd usr/bin ; rm -rf msgfmt.py ) ( cd usr/bin ; ln -sf /usr/lib/python2.3/site-packages/i18n/msgfmt.py msgfmt.py ) ( cd usr/bin ; rm -rf pygettext.py ) ( cd usr/bin ; ln -sf /usr/lib/python2.3/site-packages/i18n/pygettext.py pygettext.py ) ( cd usr/bin ; rm -rf pynche ) ( cd usr/bin ; ln -sf /usr/lib/python2.3/site-packages/pynche/pynche pynche ) ( cd usr/bin ; rm -rf modulator ) ( cd usr/bin ; ln -sf /usr/lib/python2.3/site-packages/modulator/modulator.py modulator ) ( cd usr/doc/python-2.3.1 ; rm -rf Tools ) ( cd usr/doc/python-2.3.1 ; ln -sf /usr/lib/python2.3/site-packages Tools ) EOF }