# Description: Postscript interpreter
# URL:         http://www.ghostscript.com/awki
# Maintainer:  Jürgen Daubert, juergen dot daubert at t-online dot de
# Depends on:  cups, fontconfig, xorg-libxt, xorg-libxext

name=ghostscript
version=8.60
release=2
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2 \
        http://dl.sourceforge.net/sourceforge/gs-fonts/$name-fonts-std-8.11.tar.gz) 

build () {
    cd $name-$version
    ./configure --prefix=/usr \
                --mandir=/usr/man \
                --enable-cups \
                --with-drivers=ALL
    make -j1
    make DESTDIR=$PKG install
    cp -r $SRC/fonts $PKG/usr/share/ghostscript
   
    chown root:lp $PKG/etc/cups
    rm -r $PKG/usr/{share/ghostscript/$version/{examples,doc},man/de}
    rm $PKG/usr/share/ghostscript/fonts/[CRT]*
}
