#!/bin/bash ## src2pkg script for: gettext ## Auto-generated by src2pkg-1.9.7 ## src2pkg Copyright 2005-2008 Gilbert Ashley SOURCE_NAME='gettext-0.17.tar.bz2' NAME='gettext' VERSION='0.17' # ARCH='i586' BUILD='2' PRE_FIX='usr' # Any extra options go here # we build gettext early,and use some bundled libs to reduce pre-build dependencies # This package still needs external acl, attr,cxxlibs, lib_gcc, and ncurses EXTRA_CONFIGS="--docdir=$docdir/gettext-$VERSION --disable-static \ --with-included-libcroco --with-included-glib \ --disable-java --disable-native-java" # STD_FLAGS='-Os -march=i586 -mtune=i686' OPTIMIZE_4_SIZE=YES # compressing the bins only saves 100KB with this configuration # so maybe we shouldn't bother COMPRESS_BINS=YES # split the docs, i18n stuff and devel into separate packages SPLIT_PACKAGE=i18n,doc,devel # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # do_all_processes can substitute these 16 steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source compile_source fake_install ( cd $SRC_DIR/gettext-tools make DESTDIR=$PKG_DIR install ) # Very important! Remove the libintl.h header file so it doesn't # overwrite the one from glibc. Havoc ensues if not... rm -f $PKG_DIR/usr/include/libintl.h # remove cvs archive (350K) rm -f $PKG_DIR/usr/share/gettext/archive.tar.gz # and obsolete locale.alias rm -f $PKG_DIR/usr/share/locale/locale.alias # do this early so the headers in the examples don't show up # in the devel file lists for when the devel package gets segregated ( cd $DOC_DIR # ln -sf /usr/share/gettext/ABOUT-NLS ABOUT-NLS mkdir html mv *.html html tar -cf examples.tar examples bzip2 examples.tar rm -rf examples javadoc2 csharpdoc README.woe32 ) fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst ( cd $PKG_DIR/usr/share/gettext/intl mv * $PKG_BUILDS_DIR/$DEVEL_PKG_NAME/usr/share/gettext/intl ) ( cd $PKG_DIR/usr/share/gettext # remove cruft rm -f javaversion.class rm -rf projects cp -a * $PKG_BUILDS_DIR/$DEVEL_PKG_NAME/usr/share/gettext ) # remove the leftover empty directory in the main package rm -rf $PKG_DIR/usr/share/gettext make_package post_process # src2pkg - Copyright 2005-2008 Gilbert Ashley ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # EXTRA_CONFIGS='' PRE_FIX='' DOCLIST='' # MAKE_COMMAND='' INSTALL_LINE='' # SHELL_INSTALL='YES' CORRECT_PERMS='NO' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)