### this file is sourced not run
PKGVER=4.112
PKGBUILD=1
PKGARCH=noarch

# mine
TARBALL=CharisSIL-$PKGVER.zip
MD5SUM=f17cab627e4500baf9068bbad15dcf63
SRC_URL="http://scripts.sil.org/cms/scripts/render_download.php?format=file&media_id=CharisSIL-4.112.zip&filename=CharisSIL-4.112.zip"
BUNDLE=

SLACKREQ=
SLACKDESC="font-charis-ttf: font-charis-ttf $PKGVER (Charis SIL Truetype font)  
font-charis-ttf:  
font-charis-ttf: Charis is a serif, proportionally-spaced font optimized for 
font-charis-ttf: readability in long printed documents. Charis is similar to 
font-charis-ttf: Bitstream Charter, one of the first fonts designed 
font-charis-ttf: specifically for laser printers. It is highly readable and 
font-charis-ttf: holds up well in less-than-ideal reproduction environments. 
font-charis-ttf: It also has a full set of styles - regular, italic, bold, 
font-charis-ttf: bold italic - and so is useful for general publishing.  
font-charis-ttf: 
font-charis-ttf: Brought to you by http://sil.org
"
SLACKINSTALL='mkfontscale usr/share/fonts/X11/TTF
mkfontdir usr/share/fonts/X11/TTF
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	cd tmp &&
	unzip $SRC_DIR/$TARBALL
}

### default pkg_prepare
### build
pkg_build() {
	cd /tmp/CharisSIL* &&
	mkdir -p /usr/share/fonts/X11/TTF &&
	cp *.ttf /usr/share/fonts/X11/TTF/ &&
	pkg_build_slackdesc
}


