You are not logged in.
Here's the PKGBUILD
# Contributor: Branko Vukelic (bg.branko@gmail.com)
# v8.54-2 contrib: SchaduwBlink
# v8.56-1 contrib: idealbsd
pkgname=ghostscript-gpl
pkgver=8.56
pkgrel=1
pkgdesc="An interpreter for the PostScript language"
arch=(i686)
depends=(libjpeg libpng zlib jasper libxt libcups fontconfig gsfonts gtk2)
license=(GPL)
makedepends=(gcc)
provides=(ghostscript)
conflicts=(ghostscript)
url="http://www.cs.wisc.edu/~ghost/"
source=(http://puzzle.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-${pkgver}.tar.gz
makefile.patch)
md5sums=('dcf20574f85b3c302e8982dcf427eb7c'
'49768757f2b984782ddaaee9a8c67d90')
build() {
cd ${startdir}/src/ghostscript-${pkgver}
patch -p0 -i ../makefile.patch || return 1
export GS_FONTMAP="/usr/share/fonts/Type1:/usr/share/fonts"
./configure --prefix=/usr --enable-dynamic --enable-threads --with-ijs \
--with-jbig2dec --with-jasper --with-x
make -j1 || return 1
make prefix=${startdir}/pkg/usr \
cups_serverroot=${startdir}/pkg/etc/cups \
cups_serverbin=${startdir}/pkg/usr/lib/cups install soinstall
}
The patch files contains what I think it should contain based on idealbsd's comments on the AUR page (http://aur.archlinux.org/packages.php?d … =1&ID=8101). Now, when I try to apply it it gives me the following error:
patch: **** unexpected end of file in patch
The exact contents of my patch file is:
--- src/Makefile.in-ori
+++ src/Makefile.in
@@ -67,7 +67,7 @@
-GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdatadir)/Resource:$(gsdir)/fonts
+GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdatadir)/Resource:$(gsdir)/fonts:/usr/share/fonts/Type1:/usr/share/fonts/TTF:/usr/share/fonts
I am not that good at compiling software, so i would appreciate any tips. From searching around on google, I think the src/Makefile.in is maybe different than the one idealbsd originally patched, but that's just my uneducated guess.
Incidentally, the package will compile even without the patch. The patch is supposed to get gs-gpl to recognize usual fonts directories, which is definitely desirable.
Offline
Okay, so I obviously did some hacking at the original patch that I shouldn't have. My bad, idealbsd. I got it right this time. The problem was that the text on AUR page was malformatted (probably because of the width constraints of the text box) and I thought something was wrong, but I was wrong about what was wrong. Uh, so confusing.
Anyway, I got it fixed, and will upload the tarball soon.
EDIT: Done.
Last edited by foxbunny (2007-05-31 02:23:27)
Offline