# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: S=${WORKDIR}/${PN} DESCRIPTION="Artwiz Fonts" SRC_URI="http://fluxbox.org/artwiz-aleczapka/artwiz-aleczapka-${PV}.tar.bz2" HOMEPAGE="http://fluxbox.org/artwiz-aleczapka/" SLOT=0 LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~mips ~arm" DEPEND="virtual/x11 media-libs/fontconfig x11-misc/ttmkfdir" src_compile() { cd ${S} gzip *.pcf sed 's,.pcf,.pcf.gz,g' fonts.dir > fonts.dir~ mv -f fonts.dir~ fonts.dir } src_install() { cd ${S} insopts -m0644 insinto /usr/share/fonts/artwiz-aleczapka/ doins *.pcf.gz doins fonts.alias dodoc README if [ -z "$(grep artwiz-aleczapka /etc/X11/fs/config)" ] then sed 's#^catalog.*$#&\n\t/usr/share/fonts/artwiz-aleczapka:unscaled,#g' \ /etc/X11/fs/config > ${S}/config insinto /etc/X11/fs doins config fi } pkg_postinst() { einfo ">>> Making font dirs..." cd /usr/share/fonts/artwiz-aleczapka mkfontdir fc-cache -fv ./ ewarn "You should add:" ewarn " FontPath \"/usr/share/fonts/artwiz-aleczapka/\"" ewarn "to your /etc/X11/XF86Config, and restart X." }