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

# source: james
TARBALL=CharisSIL-$PKGVER.zip
MD5SUM=10b9f94ed21e56254b068c91ead7ec6f
SRC_URL=https://software.sil.org/downloads/r/charis/$TARBALL
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
}


