#!/bin/sh ## Build script for: WindowMaker ## Template: Advanced ## Amigo PkgBuild-02 by Gilbert Ashley ## See the Amigo PkgBuild HOWTO for more help. ##### ------------Standard Package Variables------------------- # Most source code only needs these 4 variables set. # Set SRC_SUFFIX to '.tar.gz' ' .tgz' '.tar.bz2' or '.tbz' BUILD="1" NAME="WindowMaker" VERSION="0.92.0" SRC_SUFFIX=".tar.bz2" #####--------Common Overrides and Extras-------------------- # PRE_FIX="/usr" # STD_FLAGS="-O2 -march=i486 -mcpu=i686" # STD_CONFIGS="--with-gnu-ld" # EXTRA_CONFIGS="--datadir=/usr/share --sysconfdir=/etc \ # --sharedstatedir=/var/adm --localstatedir=/var/lib \ # --infodir=/usr/info --mandir=/usr/man" # COMPILE_HOST="i486-slackware-linux" EXTRA_CONFIGS="--sysconfdir=/etc/X11 --enable-gnome --enable-kde --enable-usermenu --with-gnustepdir=/usr/lib/GNUstep/Applications" # EXTRA_CONFIGS="--sysconfdir=/etc/X11 --disable-mmx --enable-usermenu --enable-modelock" # DOCLIST="COPYING AUTHORS README" #######----------------Processing------------------------------------ . /usr/share/Amigo/PkgBuild/PkgBuild-02.FUNCTIONS ; . /usr/share/Amigo/PkgBuild/PkgBuild-02.GLOBALS ; # This template calls each process individually so you can easily add # instructions between process functions, or leave out steps completely. find_source ; make_src_build_dir ; make_pkg_dirs ; unpack_source ; fix_source_perms ; cd $SRC_DIR cat $CWD/wmaker.inst.diff | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.91-cvs20050517patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-sowings.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-singleclick.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-dockhotkeys.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-session.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-restartscrpt.patch | patch -p1 --verbose || exit # # cat $CWD/patches/WindowMaker-0.92.0-menutrans.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-vlaad-trance.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-vlaad-newbuttons.patch | patch -p1 --verbose || exit cat $CWD/patches/WindowMaker-0.92.0-titlebar.patch | patch -p1 --verbose || exit cat $CWD/patches/WindowMaker-0.92.0-clipnotext.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-mmx.patch | patch -p1 --verbose || exit # for just the dialog history feature (without the above) use the textfield patch with adialog.only.patch cat $CWD/patches/WindowMaker-0.92.0-textfield.patch | patch -p1 --verbose || exit cat $CWD/patches/WindowMaker-0.92.0-adialog.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-hmepas-minimizeall.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-hmepas-swmenu_rclick.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-sga-moving-add.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-alt-focus.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-peter-newappicon.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-peter-mouse-placement.patch | patch -p1 --verbose || exit # cat $CWD/patches/WindowMaker-0.92.0-peter-appicon-bouncer2.patch | patch -p1 --verbose || exit # windowmaker-sip makes a right-click on titlebar shade the window (replaces WM Rclick menu) # cat $CWD/windowmaker-sip.patch | patch -p1 --verbose || exit cd $SRC_DIR ; aclocal -I . ; automake -a --force --copy ; 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 ; # make -i cat $CWD/patches/windowmaker.wmrootmenu.diff | patch -p1 --verbose || exit fake_install ; # make -i install DESTDIR=$PKG_DIR ; cd $SRC_BUILD_DIR ; tar xvf $CWD/WindowMaker-extra-0.1.tar.bz2 cd $SRC_BUILD_DIR/WindowMaker-extra-0.1 ; export CFLAGS="-O2 -march=i486 -mcpu=i686" cd $SRC_BUILD_DIR/WindowMaker-extra-0.1 && ./configure --prefix=/usr --with-iconsdir=/usr/share/pixmaps cd $SRC_BUILD_DIR/WindowMaker-extra-0.1 && make ; cd $SRC_BUILD_DIR/WindowMaker-extra-0.1 && make install DESTDIR=$PKG_DIR mkdir -p $PKG_DIR/etc/X11/xinit cat $CWD/xinitrc.wmaker > $PKG_DIR/etc/X11/xinit/xinitrc.wmaker chmod 755 $PKG_DIR/etc/X11/xinit/xinitrc.wmaker create_docs ; strip_bins ; fix_pkg_perms ; compress_man_pages ; make_description ; make_doinst ; make_package ; exit 0