#!/bin/bash ## src2pkg script for: ncurses ## Auto-generated by src2pkg-1.9.2 ## src2pkg Copyright 2005-2008 Gilbert Ashley BASE_URL=http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/Libs/ncurses-5.6 SOURCE_URL='ncurses-5.6.tar.gz' EXTRA_SOURCES='ncurses-5.6-20061223.patch.gz ncurses-5.6-20061230.patch.gz ncurses-5.6-20070106.patch.gz ncurses-5.6-20070113.patch.gz ncurses-5.6-20070120.patch.gz ncurses-5.6-20070127.patch.gz ncurses-5.6-20070128.patch.gz ncurses-5.6-20070203.patch.gz ncurses-5.6-20070210.patch.gz ncurses-5.6-20070217.patch.gz ncurses.mkhashsize.diff.gz slack-desc rxvt.terminfo screeninfo.src xterm.terminfo Eterm.ti ' NAME='ncurses' VERSION='5.6' ARCH='i486' BUILD='1' PRE_FIX='usr' # Any extra options go here # STD_FLAGS='-O2 -march=i486 -mtune=i686' INSTALL_TYPE=DESTDIR STD_CONFIGS='--with-gpm --disable-termcap \ --with-normal --with-shared \ --enable-symlinks --without-debug \ --without-profile --without-ada' PATCHLIST='./ncurses-5.6-20061223.patch.gz ./ncurses-5.6-20061230.patch.gz ./ncurses-5.6-20070106.patch.gz ./ncurses-5.6-20070113.patch.gz ./ncurses-5.6-20070120.patch.gz ./ncurses-5.6-20070127.patch.gz ./ncurses-5.6-20070128.patch.gz ./ncurses-5.6-20070203.patch.gz ./ncurses-5.6-20070210.patch.gz ./ncurses-5.6-20070217.patch.gz ./ncurses.mkhashsize.diff.gz' # 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 # The manual coding below comes mostly from the Slackware build script by Pat Volkerding # Configure, build/install again with wide character support: cd $SRC_DIR ; echo -n $BLUE"Cleaning build objects - "$NORMAL make clean &> /dev/null rm -f config.log config.status echo $GREEN"Done!"$NORMAL echo -n $BLUE"Reconfiguring with widec support - "$NORMAL ./configure --prefix=/usr --with-gpm --disable-termcap \ --with-normal --with-shared --enable-symlinks --without-debug \ --without-profile --without-ada --enable-widec &> /dev/null echo $GREEN"Done!"$NORMAL echo -n $BLUE"Rebuilding with widec support - "$NORMAL make &> /dev/null echo $GREEN"Done!"$NORMAL echo -n $BLUE"Reinstalling with widec support - "$NORMAL make install DESTDIR=$PKG_DIR &> /dev/null echo $GREEN"Done!"$NORMAL if [ ! -d $PKG_DIR/usr/include/ncursesw -a ! -L $PKG_DIR/usr/include/ncursesw ]; then ( cd $PKG_DIR/usr/include ; ln -sf ncurses ncursesw ) fi # Move the include files from /usr/include into /usr/include/ncurses ( cd $PKG_DIR/usr/include rm -rf ncurses mkdir ncurses mv *.h ncurses for file in ncurses/* ; do ln -sf $file . done # This shouldn't clobber the real one: mv termcap.h termcap-ncurses.h ) # Move the ncurses libraries into /lib, since they're important: mkdir -p $PKG_DIR/lib ( cd $PKG_DIR/usr/lib chmod 755 *.so chmod 644 *.a mv libncurses.so.5* $PKG_DIR/lib mv libncursesw.so.5* $PKG_DIR/lib rm -f libncurses.so ln -sf ../../lib/libncurses.so.5 libncurses.so rm -f libncursesw.so ln -sf ../../lib/libncursesw.so.5 libncursesw.so # Olde obsolete names, just in case rm -f libcurses.so ln -sf libncurses.so libcurses.so rm -f libcursesw.so ln -sf libncursesw.so libcursesw.so ) # Set TERMINFO to point to the package: export TERMINFO=$PKG_DIR/usr/share/terminfo # Fix the xterm, screen, rxvt, and Eterm entries: cd $SRC_DIR ; for tfile in $CWD/xterm.terminfo $CWD/screeninfo.src $CWD/rxvt.terminfo $CWD/Eterm.ti ; do if [ -r $tfile ]; then progs/tic -v $tfile &> /dev/null fi done unset TERMINFO fix_pkg_perms strip_bins create_docs mkdir -p $PKG_DIR/usr/doc/$NAME-$VERSION/c++ cd $SRC_DIR ; cp -a \ c++/NEWS c++/PROBLEMS c++/README-first \ $PKG_DIR/usr/doc/ncurses-$VERSION/c++ compress_man_pages make_description make_doinst 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'