#!/bin/sh ## Advanced.PkgBuild script for: EndeavourLite ## ## Amigo PkgBuild-0.3 - Gilbert Ashley ## ##### ------------Standard Package Variables------------------- # Most source code only needs these 4 variables set. # Set SRC_SUFFIX to ".tar.gz" ".tgz" ".tar.bz2" or ".tbz" BUILD="1" NAME="endeavour" VERSION="2.5.3" SRC_SUFFIX=".tar.bz2" # Note: This PkgBuild script renames the package after creation # to match a custom slack-desc, but using standard named sources. #####--------Common Overrides and Options---------------------- # PRE_FIX="" # EXTRA_CONFIGS="" # DOCLIST="" # GROUP_NAME="" #######----------------Processing------------------------------ # Get functions and read in configuration files source /usr/share/Amigo/PkgBuild/FUNCTIONS ; # This template calls each process individually so you can add # extra instructions between processes, or even leave out steps. pre_process ; find_source ; make_dirs ; unpack_source ; fix_source_perms ; # configure_source ; # compile_source ; # fake_install ; cd $SRC_DIR && ./configure Linux prefix=/usr cd $SRC_DIR && GCC323 make all # Bins -these could be put elsewhere, wrapped or renamed mkdir -p $PKG_DIR/usr/lib/endeavour2 cd $PKG_DIR/usr/lib/endeavour2 ; mkdir -p bin include lib cp -a $SRC_DIR/endeavour2/download.front/download.front \ $SRC_DIR/endeavour2/format.front/format.front \ $SRC_DIR/endeavour2/fsck.front/fsck.front \ $SRC_DIR/endeavour2/hedit/hedit \ $SRC_DIR/endeavour2/sysinfo/sysinfo \ $SRC_DIR/endeavour2/ziptool.front/ziptool.front \ $PKG_DIR/usr/lib/endeavour2/bin # Headers -these have to go here for other programs to find them. cd $SRC_DIR/endeavour2 cp -a $SRC_DIR/endeavour2/*.h $PKG_DIR/usr/lib/endeavour2/include cd $SRC_DIR/endeavour2/lib cp -a *.h $PKG_DIR/usr/lib/endeavour2/include # Libs -must be here for progs to find them. cp $SRC_DIR/endeavour2/lib/libendeavour2.so $PKG_DIR/usr/lib/endeavour2/lib # endeavour2-config mkdir -p $PKG_DIR/usr/bin cp -a $SRC_DIR/endeavour2/lib/endeavour2-config $PKG_DIR/usr/bin # Man Pages mkdir -p $PKG_DIR/usr/man/man1 cp -a $SRC_DIR/endeavour2/hedit/hedit.1.bz2 \ $SRC_DIR/endeavour2/sysinfo/sysinfo.endeavour2.1.bz2 $PKG_DIR/usr/man/man1 fix_pkg_perms ; strip_bins ; create_docs ; cp $SRC_DIR/endeavour2/data/LICENSE $PKG_DIR/usr/doc/$NAME-$VERSION cp -a $SRC_DIR/endeavour2/data/help/frontends.html $PKG_DIR/usr/doc/$NAME-$VERSION # compress_man_pages ; make_description ; make_doinst ; make_package ; # Change the final name to match what's in slack-desc mv $PKG_BUILDS_DIR/$PKG_NAME $PKG_BUILDS_DIR/EndeavourLite-2.5.3-i486-1.tgz post_process ; exit 0 ## See the Amigo PkgBuild documentation for help and examples.