#!/bin/bash ## src2pkg script for: fontconfig ## Auto-generated by src2pkg-2.0 ## src2pkg - Copyright 2005-2009 Gilbert Ashley SOURCE_NAME='fontconfig-2.4.2.tar.bz2' NAME='fontconfig' # Use ALT_NAME to override guessed value VERSION='2.4.2' # Use ALT_VERSION to override guessed value # ARCH='' BUILD='2' # PRE_FIX='usr' # Any extra options go here: EXTRA_CONFIGS="--sysconfdir=/etc --localstatedir=/var --with-default-fonts=/usr/share/fonts" PATCHLIST='fontconfig-patches/font-dirs-list.diff fontconfig-patches/fontconfig-hands-off-my-fonts-conf.diff' # fontconfig-patches/fontconfig.dejavu.diff.gz # Using DESTDIR installs the sysconfdir as PRE_FIX/etc # JAIL doesn't install the progs or libs INSTALL_FAIL=DESTDIR,JAIL # doesn't hurt but not needed AUTORECONF=NO MAKE_COMMAND='make -i' # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source # compile_source # If used, the 'build' function replaces these 3 fake_install # # don't clobber an existing font.conf file mv $PKG_DIR/etc/fonts/fonts.conf $PKG_DIR/etc/fonts/fonts.conf.new # Oh, this is a nasty set of Makefiles doing all sorts of things to the system # rm -f $PKG_DIR/var/cache/fontconfig/* mkdir -p $PKG_DIR/var/lib/tpkg/setup cat $PATCHES_DIR/$NAME-patches/setup.05.fontconfig > $PKG_DIR/var/lib/tpkg/setup/setup.05.fontconfig chmod 755 $PKG_DIR/var/lib/tpkg/setup/setup.05.fontconfig # Set up the default options in /etc/fonts/conf.d: ( cd $PKG_DIR/etc/fonts/conf.d for fontconf in \ 10-autohint.conf \ 10-no-sub-pixel.conf \ 10-sub-pixel-bgr.conf \ 10-sub-pixel-rgb.conf \ 10-sub-pixel-vbgr.conf \ 10-sub-pixel-vrgb.conf \ 10-unhinted.conf \ 20-fix-globaladvance.conf \ 20-lohit-gujarati.conf \ 20-unhint-small-vera.conf \ 30-amt-aliases.conf \ 30-urw-aliases.conf \ 40-generic.conf \ 49-sansserif.conf \ 50-user.conf \ 51-local.conf \ 60-latin.conf \ 65-fonts-persian.conf \ 65-nonlatin.conf \ 69-unifont.conf \ 70-no-bitmaps.conf \ 70-yes-bitmaps.conf \ 80-delicious.conf \ 90-synthetic.conf ; do ln -sf ../conf.avail/$fontconf . || exit 1 done if [ ! $? = 0 ]; then exit 1 fi ) if [ ! $? = 0 ]; then echo "Missing /etc/fonts/$fontconf default. Exiting" exit 1 fi fix_pkg_perms strip_bins create_docs # save a couple of MB here ( cd $DOC_DIR && rm -rf fontconfig-devel ChangLog INSTALL *.pdf *.html ) compress_man_pages make_description make_doinst make_package post_process ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # DOCLIST='' PATCHLIST='' INSTALL_TYPE='' # CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)