opt/ghostscript/Pkgfile

40 lines
981 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Postscript interpreter
2021-03-31 11:45:46 +02:00
# URL: https://www.ghostscript.com
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: util-linux cups fontconfig xorg-libxt xorg-libxext
2006-02-23 16:26:10 +01:00
name=ghostscript
2021-09-29 10:11:11 +02:00
version=9.55.0
2018-09-03 17:36:25 +02:00
release=1
2020-09-11 10:23:17 +02:00
source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${version//./}/$name-$version.tar.xz
2021-03-31 11:45:46 +02:00
https://downloads.sourceforge.net/sourceforge/gs-fonts/$name-fonts-std-8.11.tar.gz)
2006-02-23 16:26:10 +01:00
2021-03-31 11:45:46 +02:00
build() {
cd $name-$version
2020-09-11 10:23:17 +02:00
2021-03-31 11:45:46 +02:00
./configure \
--prefix=/usr \
--enable-cups \
--disable-gtk \
--disable-dbus \
--with-drivers=ALL \
--with-ijs \
--with-fontpath=/usr/share/ghostscript/fonts:/usr/share/fonts
2009-08-01 10:25:59 +02:00
2021-03-31 11:45:46 +02:00
make so all
make DESTDIR=$PKG install-so install
2021-03-31 11:45:46 +02:00
cd ijs
2020-09-11 10:23:17 +02:00
2021-03-31 11:45:46 +02:00
./autogen.sh
./configure --prefix=/usr --enable-shared
make
make DESTDIR=$PKG install
2021-03-31 11:45:46 +02:00
cp -r $SRC/fonts $PKG/usr/share/ghostscript
2008-08-04 18:40:17 +02:00
2021-03-31 11:45:46 +02:00
rm -r $PKG/usr/share/{doc,man/de}
rm $PKG/usr/share/ghostscript/fonts/[CRT]*
rm $PKG/usr/bin/ijs_{client,server}_example
2006-02-23 16:26:10 +01:00
}