#!/bin/bash ## src2pkg script for: wmaker-cvs ## Auto-generated by src2pkg-1.9.6 ## src2pkg Copyright 2005-2008 Gilbert Ashley SOURCE_NAME='WindowMaker-0.97.0pre7.tar.bz2' ALT_NAME='wmaker' ALT_VERSION='0.97.0' SIG='_pre7' # ARCH='i486' # BUILD='1' # disable gif and tiff support BUILD=2 PRE_FIX='usr' # Any extra options go here EXTRA_CONFIGS="--sysconfdir=/etc/X11 --with-appspath=/usr/lib/wmaker \ --with-gnustepdir=/usr/lib/wmaker --enable-usermenu --enable-modelock \ --disable-gif --disable-tiff" # --disable-mmx # these throw errors: # --enable-gnome --enable-kde --with-gnustepdir=/usr/lib/GNUstep --enable-sound # 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='./wmaker-patches/000-add-single-click-dock.diff' PATCHLIST=' wmaker-patches/000-wmaker-single-click-dock.diff wmaker-patches/001-wmaker-double-click-titlebar-maximize.diff wmaker-patches/002-wmaker-confirm-kill-show-appname.diff wmaker-patches/003-wmaker-add-textfield-dialog-history-with-po.diff wmaker-patches/004-wmaker-menu-translucency.diff wmaker-patches/005-wlist-cursor-navigation.diff wmaker-patches/006-alt-menutranslation.diff wmaker-patches/007-define-titlebar_height_and_use_resizebar_height.diff wmaker-patches/008-alt-clip-notext.diff wmaker-patches/009-alt-dockhotkeys.diff wmaker-patches/010-alt-vlaad-newbuttons.diff wmaker-patches/011-hmepas-minimizeall.diff wmaker-patches/012-hmepas-swmenu_rclick.diff wmaker-patches/013-sga-moving-add.diff wmaker-patches/014-peter-newappicon.diff wmaker-patches/015-peter-mouse-placement.diff wmaker-patches/016-peter-appicon-bouncer2.diff wmaker-patches/017-sga-swpanel-customization.diff wmaker-patches/018-unix-cycling.diff wmaker-patches/019-osx-cycling.diff wmaker-patches/020-clip-auto-delays.diff wmaker-patches/021-autofocus-samescreen.diff wmaker-patches/022-left_right_half_maximize.diff wmaker-patches/023-maximumize-with-fixes.diff wmaker-patches/024-mod-wheel-window-resize.diff wmaker-patches/025-export-DESKTOP_SESSION.diff wmaker-patches/026-WINGs-default-antialiased-fonts.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 if [[ $(echo $PATCHLIST |grep 'newbuttons.diff') ]] ; then cat $PATCHES_DIR/wmaker-patches/nextstyle.tiff > $SRC_DIR/WPrefs.app/tiff/nextstyle.tiff cat $PATCHES_DIR/wmaker-patches/oldstyle.tiff > $SRC_DIR/WPrefs.app/tiff/oldstyle.tiff cat $PATCHES_DIR/wmaker-patches/nextstyle.xpm > $SRC_DIR/WPrefs.app/xpm/nextstyle.xpm fi cd $SRC_DIR 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 # fix badly-placed headers skip() { mkdir -p $PKG_DIR/usr/include/WINGs mv $PKG_DIR/usr/include/WINGs.h $PKG_DIR/usr/include/WUtil.h $PKG_DIR/usr/include/WINGs mv $PKG_DIR/usr/include/WINGsP.h $PKG_DIR/usr/include/proplist-compat.h $PKG_DIR/usr/include/WINGs } # the above voodoo is not needed if we leave out patch fixes/006 # neither of the options below is working, so manually ove the stuff: # --with-appspath=/usr/lib/wmaker --with-gnustepdir=/usr/lib/wmaker mv $PKG_DIR/usr/lib/GNUstep $PKG_DIR/usr/lib/wmaker # replace the wmaker.inst script rm -f $PKG_DIR/usr/bin/wmaker.inst cat $CWD/wmaker-patches/conf/wmaker.inst > $PKG_DIR/usr/bin/wmaker.inst # install these menu helpers cp $CWD/wmaker-patches/wm-gen-desktop-menu $PKG_DIR/usr/bin cp $CWD/wmaker-patches/wm-update-desktop-menus $PKG_DIR/usr/bin cp $CWD/wmaker-patches/wm-gen-appdir-menu $PKG_DIR/usr/bin cp $CWD/wmaker-patches/resolution.sh $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/wmaker-patches/conf/W* $PKG_DIR/etc/X11/WindowMaker/ # rm -f $PKG_DIR/usr/share/WindowMaker/plmenu cp -a $CWD/wmaker-patches/conf/WMRootMenu $PKG_DIR/usr/share/WindowMaker/plmenu # rm -f $PKG_DIR/usr/share/WindowMaker/autostart.sh cp -a $CWD/wmaker-patches/conf/autostart.sh $PKG_DIR/usr/share/WindowMaker/autostart.sh # rm -f $PKG_DIR/usr/share/WindowMaker/exitscript.sh cp -a $CWD/wmaker-patches/conf/exitscript.sh $PKG_DIR/usr/share/WindowMaker/exitscript.sh # mkdir -p $PKG_DIR/etc/X11/xinit cat $CWD/wmaker-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/wmaker-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/wmaker-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)