#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=cm-unicode
pkgver=0.7.0
pkgrel=1gv
arch=noarch
source=("http://downloads.sourceforge.net/project/cm-unicode/cm-unicode/$pkgver/cm-unicode-$pkgver-ttf.tar.xz")
docs=("ofl.txt" "ofl-faq.txt" "readme" "changes" "install" "todo" "faq" "fontlog.txt")
url=http://cm-unicode.sourceforge.net/

doinst() {
        # Update the X font indexes:
        if [ -x usr/bin/mkfontdir ]; then
                usr/bin/mkfontscale usr/share/fonts/TTF
                usr/bin/mkfontdir usr/share/fonts/TTF
        fi

        if [ -x usr/bin/fc-cache ]; then
                usr/bin/fc-cache usr/share/fonts/TTF >/dev/null 2>&1
        fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"cm-unicode (Computer Modern Unicode fonts)"
"cm-unicode is a set of TrueType fonts, that were converted from"
"metafont sources using mftrace with autotrace backend and fontforge."
"Their main purpose is to create free good quality fonts for use in X"
"applications supporting many languages."
)


build() {
	cd $startdir/src/$pkgname-$pkgver/
	mkdir -p $startdir/pkg/usr/share/fonts/TTF
	cp ./*.ttf $startdir/pkg/usr/share/fonts/TTF/
}