#!/bin/sh ## Advanced.PkgBuild script for: sawfish ## ## Amigo PkgBuild-0.3 - Gilbert Ashley ## ##### ------------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="sawfish" VERSION="1.0.1" SRC_SUFFIX=".tar.bz2" #####--------Common Overrides and Options---------------------- # PRE_FIX="" EXTRA_CONFIGS="--localstatedir=/var/lib \ --with-x \ --with-readline \ --with-audiofile \ --with-esd \ --enable-capplet \ --enable-themer \ i386-slackware-linux" # DOCLIST="" # GROUP_NAME="" #######----------------Processing------------------------------ # Get functions and read in configuration files source /usr/share/Amigo/PkgBuild/FUNCTIONS ; # This template calls each process individually so you can add # extra instructions between processes, or even leave out steps. pre_process ; find_source ; make_dirs ; unpack_source ; fix_source_perms ; configure_source ; compile_source ; fake_install ; mkdir -p $PKG_DIR/etc/X11/xinit cat $CWD/xinitrc.sawfish > $PKG_DIR/etc/X11/xinit/xinitrc.sawfish chmod 755 $PKG_DIR/etc/X11/xinit/xinitrc.sawfish cp $CWD/Resources/sawfish-gorilla-0.1.tar.gz $PKG_DIR/usr/share/sawfish/themes ( cd $PKG_DIR/usr/share/sawfish/themes tar xzf sawfish-gorilla-0.1.tar.gz rm sawfish-gorilla-0.1.tar.gz cd gorilla chown -R root.root . find . -type f | xargs chmod 644 find . -type d | xargs chmod 755 cd .. tar czf gorilla.tar.gz gorilla rm -rf gorilla ) 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.