PROGNAME="GCC Java Compiler" DESC="\ gcc-java (Java support for GCC) \n\ \n\ Java support for the GNU Compiler Collection. \n\ \n\ This package contains those parts of the compiler collection needed to \n\ compile programs written in the Java programming language. The base \n\ gcc package is also required." SUBPKGNAME=gcc-java-$VERSION-s390-$BUILD subinstall() { echo "nothing to install for gcc-java" } subspecial() { # # copy complete package into subpackage tree # ( cd ../package.save/ tar -cf - usr/ | ( cd $SUBPKG ; tar -xpf - ) ) ( cd $SUBPKG/usr/bin/ rm c++ cpp g++ g77 gcc gccbug gcov gnat* gpr2make gprcmd s390-slackware-linux* ) ( cd $SUBPKG/usr/doc rm -rf gcc-$VERSION/ $DF $DX $DO mv $DJ/gcc-$VERSION . rmdir $DJ ) ( cd $SUBPKG/usr/include/ rm ffi* rm -rf c++/ ) ( cd $SUBPKG/usr/info/ rm cpp.info.gz cppinternals.info.gz fastjar.info.gz g77.info.gz \ gcc.info.gz gccinstall.info.gz gccint.info.gz gnat* ) ( cd $SUBPKG/usr/lib/gcc/s390-slackware-linux/$VERSION/ rm * include/* rm -rf adainclude/ adalib/ install-tools/ cd include rm -rf libffi/ mozilla-*/ netatalk/ objc/ rpc/ ) ( cd $SUBPKG/usr/libexec/gcc/s390-slackware-linux/$VERSION/ rm c* f771 gnat1 rm -rf install-tools/ ) ( cd $SUBPKG/usr/lib rm libffi* libfrtbegin.a libg2c.* libgcc_s.so.1 libobjc.* libstdc* libsupc* logging.properties find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ xargs strip --strip-unneeded 2> /dev/null find . -name "*.a" | xargs file | grep "archive" | cut -f 1 -d : | xargs strip -g ) ( cd $SUBPKG/usr/man/man1/ rm cpp.1.gz g++.1.gz g77.1.gz gcc.1.gz gcov.1.gz grepjar.1.gz jar.1.gz ) rm -rf $SUBPKG/usr/man/man7/ \ $SUBPKG/usr/share/gnat/ \ $SUBPKG/usr/share/locale/ cd $SUBCTL cat $CWD/slack-desc.gcc-java > slack-desc cat << "EOF" > doinst.sh ( cd usr/bin ; rm -rf s390-slackware-linux-gcjh ) ( cd usr/bin ; ln -sf gcjh s390-slackware-linux-gcjh ) ( cd usr/bin ; rm -rf s390-slackware-linux-gcj ) ( cd usr/bin ; ln -sf gcj s390-slackware-linux-gcj ) ( cd usr/lib ; rm -rf libgcj.so ) ( cd usr/lib ; ln -sf libgcj.so.5.0.0 libgcj.so ) ( cd usr/lib ; rm -rf lib-org-w3c-dom.so ) ( cd usr/lib ; ln -sf lib-org-w3c-dom.so.5.0.0 lib-org-w3c-dom.so ) ( cd usr/lib ; rm -rf lib-org-xml-sax.so ) ( cd usr/lib ; ln -sf lib-org-xml-sax.so.5.0.0 lib-org-xml-sax.so ) ( cd usr/lib ; rm -rf libgcj.so.5 ) ( cd usr/lib ; ln -sf libgcj.so.5.0.0 libgcj.so.5 ) ( cd usr/lib ; rm -rf lib-org-xml-sax.so.5 ) ( cd usr/lib ; ln -sf lib-org-xml-sax.so.5.0.0 lib-org-xml-sax.so.5 ) ( cd usr/lib ; rm -rf lib-org-w3c-dom.so.5 ) ( cd usr/lib ; ln -sf lib-org-w3c-dom.so.5.0.0 lib-org-w3c-dom.so.5 ) EOF }