wok-4.x annotate xfree86-base-fonts/receipt @ rev 4189

Fix: xfree86-base-fonts FSH
author Christophe Lincoln <pankso@slitaz.org>
date Wed Sep 23 13:56:03 2009 +0200 (2009-09-23)
parents 011647445dd9
children db63cccdb8d4
rev   line source
pankso@17 1 # SliTaz package receipt.
pankso@17 2
pankso@17 3 PACKAGE="xfree86-base-fonts"
pankso@17 4 VERSION="4.6.0"
pankso@17 5 CATEGORY="x-window"
pankso@17 6 SHORT_DESC="X window base fonts from the XFree86 project."
pankso@17 7 MAINTAINER="pankso@slitaz.org"
pankso@17 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@17 9 WEB_SITE="http://www.xfree86.org/"
pankso@17 10 WGET_URL="http://download.tuxfamily.org/slitaz/sources/fonts/$TARBALL"
pankso@4189 11 PROVIDE="xorg-base-fonts"
pankso@17 12
pankso@17 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@17 14 genpkg_rules()
pankso@17 15 {
pankso@4189 16 mkdir -p $fs/usr/share/fonts/X11
pankso@4189 17 cp -a $src/fonts/* $fs/usr/share/fonts/X11
pankso@17 18 }
pankso@17 19
pankso@17 20 # Execute fc-cache when the package finish ti install.
pankso@17 21 post_install()
pankso@17 22 {
pankso@17 23 local root
pankso@17 24 root=$1
pankso@17 25 if [ -n "$root" ]; then
pankso@17 26 rm -Rf $root/var/cache/fontconfig
pankso@17 27 cp -a /var/cache/fontconfig $root/var/cache
pankso@17 28 else
pankso@17 29 fc-cache
pankso@17 30 fi
pankso@17 31 }
pascal@1925 32
pascal@1925 33 # We need this package on build host to install it in target directory
pankso@17 34 SELF_INSTALL=1