opt/ghostscript/Pkgfile

40 lines
1.1 KiB
Plaintext

# Description: Postscript interpreter
# URL: http://www.ghostscript.com
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: util-linux, cups, fontconfig, xorg-libxt, xorg-libxext
name=ghostscript
version=9.16
release=1
source=(http://downloads.ghostscript.com/public/$name-$version.tar.bz2
http://downloads.sourceforge.net/sourceforge/gs-fonts/$name-fonts-std-8.11.tar.gz)
build () {
cd $name-$version
./configure --prefix=/usr \
--mandir=/usr/man \
--enable-cups \
--disable-gtk \
--disable-dbus \
--with-drivers=ALL \
--with-ijs \
--with-fontpath=/usr/share/ghostscript/fonts:/usr/share/fonts
make so all
make DESTDIR=$PKG install-so install
cd ijs
./autogen.sh
./configure --prefix=/usr --mandir=/usr/man --enable-shared
make
make DESTDIR=$PKG install
cp -r $SRC/fonts $PKG/usr/share/ghostscript
rm -r $PKG/usr/{share/ghostscript/$version/{examples,doc},man/de}
rm $PKG/usr/share/ghostscript/fonts/[CRT]*
rm $PKG/usr/bin/ijs_{client,server}_example
}