#!/bin/sh ## Advanced.PkgBuild script for: abiword ## ## 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="abiword" VERSION="2.2.9" SRC_SUFFIX=".tar.bz2" #####--------Common Overrides and Options---------------------- # PRE_FIX="" EXTRA_CONFIGS="--disable-gnome --disable-enchant --disable-debug" # 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 ; mv $SRC_DIR/abi/Makefile $SRC_DIR/abi/Makefile.author cd $SRC_DIR/abi && ./configure --prefix=$PRE_FIX $EXTRA_CONFIGS # compile_source ; cd $SRC_DIR/abi && make # fake_install ; cd $SRC_DIR/abi && make DESTDIR=$PKG_DIR install # remove nastly link created by Makefile rm -f $PKG_DIR/usr/bin/abiword # replace it # cd $PKG_DIR/usr/bin ln -sf ./AbiWord abiword fix_pkg_perms ; strip_bins ; create_docs ; cd $SRC_DIR/abi ; cp -a COPYING CREDITS.TXT README.TXT UnixFonts.txt \ $PKG_DIR$PRE_FIX/doc/$NAME-$VERSION compress_man_pages ; make_description ; make_doinst ; make_package ; post_process ; exit 0 ## See the Amigo PkgBuild documentation for help and examples.