#!/bin/sh ## src2pkg build script for: WindowMaker ## ## src2pkg- Gilbert Ashley ## BUILD="5" SOURCE_NAME="WindowMaker-0.92.0.tar.bz2" ALT_NAME="windowmaker" VERSION="0.92.0" # 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 #####--------Common Overrides and Options---------------------- # PRE_FIX="" EXTRA_CONFIGS="--sysconfdir=/etc/X11 --enable-gnome --enable-kde \ --enable-usermenu --with-gnustepdir=/usr/lib/GNUstep \ --sysconfdir=/etc/X11 --disable-mmx --enable-usermenu --enable-modelock" DOCLIST="COPYING AUTHORS README" AUTO_PATCH="NO" # Get functions and read in configuration files source /usr/libexec/src2pkg/FUNCTIONS ; # Start processing pre_process ; find_source ; make_dirs ; unpack_source ; fix_source_perms ; cd $SRC_DIR echo $BLUE"Applying patches - "$NORMAL patch -p1 < $CWD/Resources/WindowMaker-0.92.0-sowings.patch patch -p1 < $CWD/Resources/WindowMaker-0.92.0-singleclick.patch # patch -p1 < $CWD/Resources/WindowMaker-0.92.0-wmaker.inst.diff patch -p1 < $CWD/Resources/WindowMaker-0.92.0-titlebar.patch patch -p1 < $CWD/Resources/WindowMaker-0.92.0-clipnotext.patch patch -p1 < $CWD/Resources/WindowMaker-0.92.0-mmx.patch patch -p1 < $CWD/Resources/WindowMaker-0.92.0-textfield.patch patch -p1 < $CWD/Resources/WindowMaker-0.92.0-adialog.patch patch -p1 < $CWD/Resources/WindowMaker-0.92.0-restartscrpt.patch patch -p1 < $CWD/Resources/WindowMaker-0.92.0-gcc4.patch cd $SRC_DIR ; echo -n $BLUE"Generating config files - "$NORMAL aclocal -I . &> /dev/null automake -a --force --copy &> /dev/null export LINGUAS="`cd po ; /bin/ls *.po | sed 's/.po//g'`" export GNUSTEP_LOCAL_ROOT=/usr/lib/GNUstep export NLSDIR=/usr/share/locale echo $GREEN"Done!"$NORMAL configure_source ; compile_source ; fake_install ; # replace the wmaker.inst script rm -f $PKG_DIR/usr/bin/wmaker.inst cat $CWD/conf/wmaker.inst > $PKG_DIR/usr/bin/wmaker.inst chmod 755 $PKG_DIR/usr/bin/wmaker.inst # replace the default config files mkdir -p $PKG_DIR/etc/X11/WindowMaker rm -f $PKG_DIR/etc/X11/WindowMaker/* cp -a $CWD/conf/W* $PKG_DIR/etc/X11/WindowMaker/ # rm -f $PKG_DIR/usr/share/WindowMaker/plmenu cp -a $CWD/conf/WMRootMenu $PKG_DIR/usr/share/WindowMaker/plmenu # rm -f $PKG_DIR/usr/share/WindowMaker/autostart.sh cp -a $CWD/conf/autostart.sh $PKG_DIR/usr/share/WindowMaker/autostart.sh # rm -f $PKG_DIR/usr/share/WindowMaker/exitscript.sh cp -a $CWD/conf/exitscript.sh $PKG_DIR/usr/share/WindowMaker/exitscript.sh # mkdir -p $PKG_DIR/etc/X11/xinit cat $CWD/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/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/Resources/Extra-Features.txt $PKG_DIR/usr/doc/$NAME-$VERSION compress_man_pages ; make_description ; make_doinst ; make_package ; post_process ; exit 0 ## See the Amigo PkgBuild documentation for help and examples.