# ghostscript, http://www.cups.org/espgs/

name=ghostscript
version=8.15.4
release=1
source=(http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/ghostscript/$version/espgs-$version-source.tar.bz2
ftp://ftp.gnu.org/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz
ftp://ftp.gnu.org/gnu/ghostscript/gnu-gs-fonts-std-6.0.tar.gz)

build() {
    cd espgs-$version
    ./configure \
	--prefix=/usr \
	--mandir=/usr/share/man \
	--infodir=/usr/share/info \
	--with-gimp-print \
	--with-drivers=ALL \
	--with-x \
	--enable-cups
    make
    make install_prefix=$PKG install
    rm -rf $PKG/usr/share/man/de
    rm -rf $PKG/usr/share/ghostscript/8.15/{examples,doc}
    mkdir -p $PKG/usr/share/ghostscript
    mv ../fonts $PKG/usr/share/ghostscript
    chown root.root -R $PKG
}
