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

# source: BLFS 7.5 / 8.2
TARBALL=ghostscript-fonts-std-$PKGVER.tar.gz
MD5SUM=6865682b095f8c4500c54b285ff05ef6 
SRC_URL=http://downloads.sourceforge.net/gs-fonts/$TARBALL
BUNDLE=

GNUFONT_TARBALL=gnu-gs-fonts-other-6.0.tar.gz
GNUFONT_MD5SUM=33457d3f37de7ef03d2eea05a9e6aa4f
GNUFONT_SRC_URL=https://downloads.sourceforge.net/gs-fonts/$GNUFONT_TARBALL


SLACKREQ='ghostscript'
SLACKDESC="ghostscript-std-fonts: ghostscript-std-fonts $PKGVER (Standard Ghostscript fonts) 
ghostscript-std-fonts:  
ghostscript-std-fonts: This package contains standard ghostscript fonts. They 
ghostscript-std-fonts: are only usable by ghostscript and not by anything 
ghostscript-std-fonts: else.  
ghostscript-std-fonts: 
ghostscript-std-fonts: 
ghostscript-std-fonts: 
ghostscript-std-fonts: 
ghostscript-std-fonts: 
ghostscript-std-fonts:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	SRC_URL=$GNUFONT_SRC_URL &&
	pkg_check $SRC_DIR $GNUFONT_TARBALL $GNUFONT_MD5SUM &&
	cp $SRC_DIR/$GNUFONT_TARBALL tmp
}

### default pkg_package
### build
pkg_build() {
	mkdir -p /usr/share/ghostscript
	mv /tmp/fonts /usr/share/ghostscript
	chown -R 0:0 /usr/share/ghostscript/fonts
	tar -xf /tmp/$GNUFONT_TARBALL -C /usr/share/ghostscript --no-same-owner &&
	pkg_build_slackdesc
}


