milis/talimatname/genel/xpdf/talimat

32 lines
754 B
Plaintext

# Description: PDF goruntuleyici
# URL: http://foolabs.com/xpdf
# Packager: milisarge
# Depends on: lesstif
name=xpdf
version=3.04
release=1
source=(ftp://ftp.foolabs.com/pub/xpdf/$name-$version.tar.gz)
build() {
cd $name-$version
sed -i 's/\(s = XmStringCreateLocalized(\)/\1(char *)/g' xpdf/XPDFViewer.cc
./configure \
--prefix=/usr \
--with-Xm-library=/usr/lib \
--with-Xm-includes=/usr/include/Xm \
--with-freetype2-includes=/usr/include/freetype2 \
--sysconfdir=/etc \
--enable-a4-paper \
--enable-opi \
--with-t1-library=no \
--mandir=/usr/man
make
make install DESTDIR=$PKG
find $PKG/usr/bin $PKG/usr/man/man1 -iname 'pdf*' -delete
}