# Description: Microsoft'un Çekirdek TTF Fontları
# URL: http://corefonts.sourceforge.net
# Packager: milisarge
# Depends on: xorg-libx11 xorg-fontconfig libarchive p7zip 
_sfpath="http://downloads.sourceforge.net/corefonts"

name=ttf-ms-fonts
version=2.0
release=1

source=($_sfpath/andale32.exe $_sfpath/arial32.exe  $_sfpath/arialb32.exe
        $_sfpath/comic32.exe  $_sfpath/courie32.exe $_sfpath/georgi32.exe
        $_sfpath/impact32.exe $_sfpath/times32.exe  $_sfpath/trebuc32.exe
        $_sfpath/verdan32.exe $_sfpath/webdin32.exe )

build() {
	for i in *.exe; do
	    7z e -y $i;
	done

	install -dm755 "$PKG/usr/share/fonts/TTF"

        for font in *.{ttf,TTF}; do
            install -m644 $font $PKG/usr/share/fonts/TTF/$(echo $font|tr A-Z a-z)
        done
}
