#!/bin/sh ## Advanced.PkgBuild script for: WindowMaker ## ## Amigo PkgBuild- Gilbert Ashley ## BUILD="2" SOURCE_NAME="WindowMaker-0.92.0.tar.bz2" ALT_NAME="windowmaker" VERSION="0.92.0" #####--------Common Overrides and Options---------------------- # PRE_FIX="" EXTRA_CONFIGS="--sysconfdir=/etc/X11 --enable-gnome --enable-kde \ --enable-usermenu --with-gnustepdir=/usr/lib/GNUstep/Applications \ --sysconfdir=/etc/X11 --disable-mmx --enable-usermenu --enable-modelock" DOCLIST="COPYING AUTHORS README" # Get functions and read in configuration files source /usr/libexec/pkgbuild/FUNCTIONS ; # Start processing pre_process ; find_source ; make_dirs ; unpack_source ; fix_source_perms ; cd $SRC_DIR echo -n $BLUE"Applying patches - "$NORMAL patch -p1 < $CWD/Resources/wmaker.inst.diff 1> /dev/null patch -p1 < $CWD/Resources/WindowMaker-0.92.0-titlebar.patch 1> /dev/null patch -p1 < $CWD/Resources/WindowMaker-0.92.0-clipnotext.patch 1> /dev/null patch -p1 < $CWD/Resources/WindowMaker-0.92.0-textfield.patch 1> /dev/null patch -p1 < $CWD/Resources/WindowMaker-0.92.0-adialog.patch 1> /dev/null echo $GREEN"Done!"$NORMAL # cd $SRC_DIR ; aclocal -I . ; automake -a --force --copy 1> /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 configure_source ; compile_source ; # cd $SRC_DIR/WindowMaker/Defaults ; # cat $CWD/Resources/WMRootMenu.AFX-01.diff | patch -p0 fake_install ldconfig mkdir -p $PKG_DIR/etc/X11/WindowMaker cp $CWD/Resources/WMRootMenu $PKG_DIR/etc/X11/WindowMaker cd $SRC_BUILDS_DIR ; echo $BLUE"Building WindowMaker Extras - "$NORMAL tar xf $CWD/WindowMaker-extra-0.1.tar.bz2 export CFLAGS="-O2 -march=i486 -mcpu=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 mkdir -p $PKG_DIR/etc/X11/xinit cat $CWD/Resources/xinitrc.wmaker > $PKG_DIR/etc/X11/xinit/xinitrc.wmaker chmod 755 $PKG_DIR/etc/X11/xinit/xinitrc.wmaker fix_pkg_perms ; strip_bins ; create_docs ; compress_man_pages ; make_description ; make_doinst ; make_package ; post_process ; exit 0 ## See the Amigo PkgBuild documentation for help and examples.