diff options
Diffstat (limited to 'source/xap/xpdf/xpdf.SlackBuild')
-rwxr-xr-x | source/xap/xpdf/xpdf.SlackBuild | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/source/xap/xpdf/xpdf.SlackBuild b/source/xap/xpdf/xpdf.SlackBuild index 6093f21d8..6aa5e1b45 100755 --- a/source/xap/xpdf/xpdf.SlackBuild +++ b/source/xap/xpdf/xpdf.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009, 2010, 2011, 2012 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2011, 2012, 2013 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,9 +21,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=3.02 -PATCHLEVEL=pl6 -BUILD=${BUILD:-4} +VERSION=3.03 +PATCHLEVEL= +BUILD=${BUILD:-3} NUMJOBS=${NUMJOBS:-" -j7 "} @@ -70,15 +70,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -zcat $CWD/patches/xpdf-resizefix.diff.gz | patch -p1 --verbose || exit 1 -cat $CWD/patches/xpdf-3.02pl1.patch | patch -p1 --verbose || exit 1 -cat $CWD/patches/xpdf-3.02pl2.patch | patch -p1 --verbose || exit 1 -cat $CWD/patches/xpdf-3.02pl3.patch | patch -p1 --verbose || exit 1 -cat $CWD/patches/xpdf-3.02pl4.patch | patch -p1 --verbose || exit 1 -cat $CWD/patches/xpdf-3.02pl5.patch | patch -p1 --verbose || exit 1 -zcat $CWD/patches/xpdf_3.02-1.3.diff.gz | patch -p1 --verbose || exit 1 zcat $CWD/patches/xpdfrc.diff.gz | patch -p1 --verbose || exit 1 -zcat $CWD/patches/03-float.patch.gz | patch -p1 --verbose || exit 1 +zcat $CWD/patches/xpdf.XPDFViewer.diff.gz | patch -p1 --verbose || exit 1 +zcat $CWD/patches/xpdf-3.03-CVE-2012-2142.diff.gz | patch -p1 --verbose || exit 1 CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -87,9 +81,7 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --sysconfdir=/etc \ - --with-gzip \ --with-freetype2-includes=/usr/include/freetype2 \ - --without-t1-library \ --build=$ARCH-slackware-linux || exit 1 make $NUMJOBS || make || exit 1 @@ -120,15 +112,16 @@ cat xpdf/xpdfIcon.xpm > $PKG/usr/share/pixmaps/xpdfIcon.xpm # Add additional language support: for language in xpdf-arabic xpdf-chinese-simplified xpdf-chinese-traditional xpdf-cyrillic xpdf-greek xpdf-hebrew xpdf-japanese xpdf-korean xpdf-latin2 xpdf-thai xpdf-turkish ; do rm -rf ${language} - tar xf $CWD/lang/${language}.tar.gz + tar xf $CWD/lang/${language}*.tar.gz ( cd ${language} + echo "Patching for ${language}:" zcat $CWD/lang/${language}.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 chown -R root:root . find . -type f -exec chmod 644 {} \; cat add-to-xpdfrc >> $PKG/etc/xpdfrc.new mkdir -p $PKG/usr/share/xpdf/$(echo ${language} | cut -f2- -d -) cp -a * $PKG/usr/share/xpdf/$(echo ${language} | cut -f2- -d -) - ) + ) || exit 1 done find $PKG | xargs file | grep -e "executable" -e "shared object" \ |