#!/bin/sh # Set initial variables: CWD=`pwd` TMP=/tmp PKG=$TMP/package-xaw3d VERSION=1.5 ARCH=alpha BUILD=2 mkdir -p $PKG cd $PKG explodepkg $CWD/_xaw3d.tar.gz ( cd $TMP tar xzf $CWD/Xaw3d-1.5.tar.gz ( cd xc ; zcat $CWD/Xaw3d-1.5.diff.gz | patch -p1 --verbose ) cd xc/lib/Xaw3d ln -s .. X11 xmkmf make mkdir -p $PKG/usr/X11R6/lib strip --strip-unneeded libXaw3d.so.7.0 cat libXaw3d.so.7.0 > $PKG/usr/X11R6/lib/libXaw3d.so.7.0 mkdir -p $PKG/usr/doc/Xaw3d cp -a README.XAW3D $PKG/usr/doc/Xaw3d chown root.root $PKG/usr/doc/Xaw3d/README.XAW3D chmod 644 $PKG/usr/doc/Xaw3d/README.XAW3D mkdir -p $PKG/usr/X11R6/include/X11/Xaw3d for header in AllWidgets.h AsciiSink.h AsciiSinkP.h AsciiSrc.h AsciiSrcP.h \ AsciiText.h AsciiTextP.h Box.h BoxP.h Cardinals.h Command.h CommandP.h \ Dialog.h DialogP.h Form.h FormP.h Grip.h GripP.h Label.h LabelP.h Layout.h \ LayoutP.h List.h ListP.h MenuButton.h MenuButtoP.h MultiSrc.h MultiSrcP.h \ MultiSink.h MultiSinkP.h Paned.h PanedP.h Panner.h PannerP.h Porthole.h \ PortholeP.h Repeater.h RepeaterP.h Reports.h Scrollbar.h ScrollbarP.h \ Simple.h SimpleP.h SimpleMenu.h SimpleMenP.h Sme.h SmeP.h SmeBSB.h SmeBSBP.h \ SmeLine.h SmeLineP.h SmeThreeD.h SmeThreeDP.h StripChart.h StripCharP.h \ Template.c Template.h TemplateP.h Text.h TextP.h TextSink.h TextSinkP.h \ TextSrc.h TextSrcP.h ThreeD.h ThreeDP.h Toggle.h ToggleP.h Tree.h \ TreeP.h VendorEP.h Viewport.h ViewportP.h XawImP.h XawInit.h ; do cp -a $header $PKG/usr/X11R6/include/X11/Xaw3d/$header chown root.root $PKG/usr/X11R6/include/X11/Xaw3d/$header chmod 644 $PKG/usr/X11R6/include/X11/Xaw3d/$header done rm -rf $PKG/usr/{doc,info,man} mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG echo "n" | makepkg $TMP/xaw3d-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/xaw3d.build.log