#!/bin/sh # src2pkg script for: AFX-taskbar # BUILD="1" SOURCE_NAME=AFX-taskbar-1.0.2.01.tar.bz2 ALT_NAME="afx-taskbar" VERSION="1.0.2.01" BUILD="2" # PRE_FIX="/usr" EXTRA_CONFIGS="--with-x --with-xinerama=no \ --enable-static=no --with-xft --without-imlib" # need to find out what's wrong with imlib # DOCLIST="" PATCHLIST="Resources/taskbar-freetype-includes.diff" # Get functions and read in configuration files source /usr/libexec/src2pkg/FUNCTIONS # doit pre_process find_source make_dirs unpack_source fix_source_perms # The included 'libtool' file is being overwritten during configuration, # which causes shared libraries to not be built. So, make a copy of the # original and then jam it back in there. cp $SRC_DIR/libtool $SRC_DIR/libtool.orig # the libltdl included with these sources gives lots of grief to src2pkg's # onfiguration routines. Specifically, configuration chokes because src2pkg # sets both CFLAGS and CXXFLAGS, so we do configuration manually # This is the only package I've seen which needs this... # configure_source ; cd $SRC_DIR && ./configure --prefix=$PRE_FIX $EXTRA_CONFIGS # put back the original libtool file. libtool2 sucks... mv $SRC_DIR/libtool.orig $SRC_DIR/libtool compile_source fake_install # remove cruft rm -rf $PKG_DIR/usr/include # install a working (for us) taskbar conf file mkdir -p $PKG_DIR/etc cp $CWD/Resources/taskbar.conf $PKG_DIR/etc/taskbar.new mkdir -p $PKG_DIR/usr/share/minipix cp -a $CWD/Resources/minipix/* $PKG_DIR/usr/share/minipix/ chown -R root.root $PKG_DIR/usr/share/minipix chmod 755 $PKG_DIR/usr/share/minipix chmod 644 $PKG_DIR/usr/share/minipix/* fix_pkg_perms strip_bins create_docs # install example conf files cp $CWD/Resources/example_taskbar $CWD/Resources/taskbar.current $DOC_DIR compress_man_pages make_description make_doinst make_package post_process