#!/bin/bash ## src2pkg script for: wmaker-cvs ## Auto-generated by src2pkg-1.9.6 ## src2pkg Copyright 2005-2008 Gilbert Ashley SOURCE_NAME='wmaker-cvs-20060427.tar.bz2' ALT_NAME='wmaker' ALT_VERSION='20060427' # ARCH='i486' BUILD='7' # Build 3 adds the singleclick and sowings patches and adds # the proper entry to WMRootMenu to activate run-box history # it also makes using the exitscript possible. We place an # edited version in the package which removes the Xrootenv.0 file from # your $HOME directory when you log out. Leaving this file in # $HOME can be a security risk, especially for 'root'. # the wmaker.inst diff now also installs the default WMWindowAttributes # file when a user runs wmaker for the first time ## BUILD 4 is a rebuild ## BUILD 5 adds patches 12*, 13* and 14* from debian ## BUILD 6 adds upstream changes (cvs), plus patches from Carlos Mafra(01* - 06*) ## BUILD 7 adds helper scripts for generating menus: ## wm-gen-appdir-menu, wm-gen-desktop-menu and wm-uüdate-desktop-menus ## and patches: ## maximize-borderless-fix-missing-pixels.diff ## xinerama-switchpanel-corruption-fix.diff PRE_FIX='usr' # Any extra options go here EXTRA_CONFIGS="--sysconfdir=/etc/X11 --enable-gnome --enable-kde \ --enable-usermenu --with-gnustepdir=/usr/lib/GNUstep \ --sysconfdir=/etc/X11 --enable-usermenu --enable-modelock" # --disable-mmx # STD_FLAGS='-O2 -march=i486 -mtune=i686' DOCLIST="COPYING COPYING.OPL COPYING.WTFPL AUTHORS FAQ FAQ.I18N FAQ.I18N.cs FAQ.I18N.sk ChangeLog README README.definable-cursor README.es README.pt" PATCHLIST='./patches/01-WindowMaker-0.92.0-remove_delayedAction.diff ./patches/02-WindowMaker-0.92.0-remove_nopolling.diff ./patches/03-WindowMaker-0.92.0-remove_synchronize.diff ./patches/04-WindowMaker-0.92.0-avoid_null_font.diff ./patches/05-WindowMaker-0.92.0-specify-visual-id-to-avoid-composite-corruption.diff ./patches/06-WindowMaker-0.92.0-setWorkspaceSpecificBack.diff ./patches/07-WindowMaker-cvs-fix-x86_64.diff ./patches/12-unix_cycling.diff ./patches/13-net_wm_name.diff ./patches/14-fix_overrun.diff ./patches/15-maximize-borderless-fix-missing-pixels.diff ./patches/16-xinerama-switchpanel-corruption-fix.diff ./patches/20-WindowMaker-cvs-sowings.diff ./patches/21-WindowMaker-0.92.0-textfield.diff ./patches/22-WindowMaker-0.92.0-adialog.diff ./patches/23-WindowMaker-0.92.0-singleclick.diff ./patches/24-WindowMaker-0.92.0-titlebar.diff ./patches/25-WindowMaker-0.92.0-clipnotext.diff ./patches/26-WindowMaker-cvs-mmx.diff ./patches/27-WindowMaker-0.92.0-restartscrpt.diff' # ./patches/20-autogen.diff # 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 export LINGUAS="`cd po ; /bin/ls *.po | sed 's/.po//g'`" export GNUSTEP_LOCAL_ROOT=/usr/lib/GNUstep export NLSDIR=/usr/share/locale configure_source compile_source fake_install # replace the wmaker.inst script rm -f $PKG_DIR/usr/bin/wmaker.inst cat $CWD/patches/conf/wmaker.inst > $PKG_DIR/usr/bin/wmaker.inst # install these menu helpers cp $CWD/patches/wm-gen-desktop-menu $PKG_DIR/usr/bin cp $CWD/patches/wm-update-desktop-menus $PKG_DIR/usr/bin cp $CWD/patches/wm-gen-appdir-menu $PKG_DIR/usr/bin chmod 755 $PKG_DIR/usr/bin/* # replace the default config files mkdir -p $PKG_DIR/etc/X11/WindowMaker rm -f $PKG_DIR/etc/X11/WindowMaker/* cp -a $CWD/patches/conf/W* $PKG_DIR/etc/X11/WindowMaker/ # rm -f $PKG_DIR/usr/share/WindowMaker/plmenu cp -a $CWD/patches/conf/WMRootMenu $PKG_DIR/usr/share/WindowMaker/plmenu # rm -f $PKG_DIR/usr/share/WindowMaker/autostart.sh cp -a $CWD/patches/conf/autostart.sh $PKG_DIR/usr/share/WindowMaker/autostart.sh # rm -f $PKG_DIR/usr/share/WindowMaker/exitscript.sh cp -a $CWD/patches/conf/exitscript.sh $PKG_DIR/usr/share/WindowMaker/exitscript.sh # mkdir -p $PKG_DIR/etc/X11/xinit cat $CWD/patches/conf/xinitrc.wmaker > $PKG_DIR/etc/X11/xinit/xinitrc.wmaker chmod 755 $PKG_DIR/etc/X11/xinit/xinitrc.wmaker # build extras cd $SRC_BUILDS_DIR ; echo $BLUE"Building WindowMaker Extras - "$NORMAL tar xf $CWD/patches/WindowMaker-extra-0.1.tar.bz2 export CFLAGS="-O2 -march=i486 -mtune=i686" cd $SRC_BUILDS_DIR/WindowMaker-extra-0.1 && ./configure --prefix=/usr --with-iconsdir=/usr/share/pixmaps 1> /dev/null cd $SRC_BUILDS_DIR/WindowMaker-extra-0.1 && make 1> /dev/null cd $SRC_BUILDS_DIR/WindowMaker-extra-0.1 && make install DESTDIR=$PKG_DIR 1> /dev/null cd $SRC_BUILDS_DIR && rm -rf WindowMaker-extra-0.1 fix_pkg_perms strip_bins create_docs cp -a $CWD/patches/Extra-Features.txt $PKG_DIR/usr/doc/$NAME-$VERSION 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' # 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)