#!/bin/bash ## PkgBuild script for: tinyX11 ## Auto-generated by 'src2pkg' BUILD='1' NAME='X11-tiny' VERSION='1.2.61' SRC_SUFFIX='.tar.bz2' STD_FLAGS='-O2 -march=i486 -mcpu=i686' PRE_FIX='/usr' DOCLIST='README.Amigo' # Get the functions and configs source /usr/libexec/pkgbuild/FUNCTIONS ; # do_all_processes can substitute these 16 steps: pre_process find_source make_dirs unpack_source fix_source_perms # configure_source # compile_source # fake_install mkdir -p $PKG_DIR/usr cd $SRC_DIR && make World cd $SRC_DIR && make DESTDIR=$PKG_DIR install # remove X build utils which overwrite standard packages cd $PKG_DIR/usr/X11R6/bin ; rm -f ccmakedep gccmakedep imake makedepend makeg rm -f makestrs mergelib mkdirhier mkhtmlindex rman xmkmf # these 3 could be very useful. also makeshadow which doesn't get built rm -f revpath lndir cleanlinks # change the name mv $PKG_DIR/usr/X11R6/bin/Xvesa $PKG_DIR/usr/X11R6/bin/XvesaTiny # move the libraries to /usr mkdir -p $PKG_DIR/usr/lib/tinyX11 cp -a $PKG_DIR/usr/X11R6/lib/* $PKG_DIR/usr/lib/tinyX11 rm -rf $PKG_DIR/usr/lib/tinyX11/X11 rm -rf $PKG_DIR/usr/X11R6/lib # move the development headers and directories mkdir -p $PKG_DIR/usr/include/tinyX11 cp -a $PKG_DIR/usr/X11R6/include/* $PKG_DIR/usr/include/tinyX11 rm -rf $PKG_DIR/usr/X11R6/include # if libXrender collides with installed version it could be removed # rm -f $PKG_DIR/usr/lib/libXrender* # For a binary-only package remove all the headers... # rm -rf $PKG_DIR/usr/include/tinyX11 # and remove the static libs, too. # cd $PKG_DIR/usr/lib/tinyX11 && rm -f ./*.a fix_pkg_perms strip_bins create_docs cp -a $SRC_DIR/docs/RELNOTES-X.org $PKG_DIR/usr/doc/$NAME-$VERSION cp -a $SRC_DIR/docs/README.xwoaf $PKG_DIR/usr/doc/$NAME-$VERSION cd $SRC_DIR/config/cf ; cp -a TinyX.cf host.def kdrive.cf linux.cf $PKG_DIR/usr/doc/$NAME-$VERSION cp -a site.def xf86site.def $PKG_DIR/usr/doc/$NAME-$VERSION compress_man_pages make_description make_doinst make_package post_process # Amigo PkgBuild and src2pkg - Copyright 2005-2006 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='' INSTALL_RULE='' CONFIG_SUBDIR=''