#!/bin/bash ## src2pkg script for: xaw3d ## Auto-generated by sb2sp-0.6 ## sb2sp - Copyright 2009-2010 Gilbert Ashley ## This script is based on xaw3d.SlackBuild # Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA ## See the end of this file for the full Copyright/License SOURCE_NAME='Xaw3d-1.5E.tar.gz' NAME='xaw3d' # Use ALT_NAME to override guessed value VERSION='1.5E' # Use ALT_VERSION to override guessed value # ARCH='x86_64' #BUILD='1' # PRE_FIX='usr' # Any extra options go here: # EXTRA_CONFIGS="" PATCHLIST='Xaw3d-1.5-debian-fixes.diff.gz Xaw3d-1.5E.diff.gz' # Optional function replaces configure_source, compile_source, fake_install #Adapted from the xaw3d.SlackBuild # somewhere I have a 'normal' src2pkg build script... # but see the end of this file for the SlackBuild Copyright info build() { cd lib/Xaw3d ln -s .. X11 xmkmf make CCOPTIONS="$STDFLAGS -I." || exit 1 mkdir -p $PKG_DIR/usr/lib${LIBDIRSUFFIX} cat libXaw3d.so.8.0 > $PKG_DIR/usr/lib${LIBDIRSUFFIX}/libXaw3d.so.8.0 chmod 755 $PKG_DIR/usr/lib${LIBDIRSUFFIX}/libXaw3d.so.8.0 # Make compat symlinks: ( cd $PKG_DIR/usr/lib${LIBDIRSUFFIX} ln -sf libXaw3d.so.8.0 libXaw3d.so.8 ln -sf libXaw3d.so.8 libXaw3d.so ln -sf libXaw3d.so.8 libXaw3d.so.7 ln -sf libXaw3d.so.7 libXaw3d.so.6 ) mkdir -p $PKG_DIR/usr/share/doc/Xaw3d-$VERSION cp -a README.XAW3D $PKG_DIR/usr/share/doc/Xaw3d-$VERSION chmod 644 $PKG_DIR/usr/share/doc/Xaw3d-$VERSION/README.XAW3D mkdir -p $PKG_DIR/usr/include/X11/Xaw3dshare/ 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 Tip.h TipP.h Toggle.h ToggleP.h Tree.h \ TreeP.h VendorEP.h Viewport.h ViewportP.h Xaw3dP.h XawImP.h XawInit.h ; do cp -a $header $PKG_DIR/usr/include/X11/Xaw3d/$header chmod 644 $PKG_DIR/usr/include/X11/Xaw3d/$header done } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source # compile_source # If used, the 'build' function replaces these 3 fake_install # fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process ## Original xaw3d.SlackBuild Copyright & License: # Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.