|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2008,2010,2011,2012 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2008,2010,2011,2012,2015 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -29,9 +29,10 @@ |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-fop} |
|
|
|
|
VERSION=${VERSION:-1.1} |
|
|
|
|
VERSION=${VERSION:-2.0} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-bin.tar.gz} |
|
|
|
|
WGET=${WGET:-http://apache.mirrors.hoobly.com/xmlgraphics/fop/binaries/$ARCHIVE} |
|
|
|
|
WGET=${WGET:-http://mirrors.gigenet.com/apache/xmlgraphics/fop/binaries/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
HYPH_SRC=${HYPH_SRC:-offo-hyphenation-binary_v2.0.zip} |
|
|
|
|
HYPH_WGET=${HYPH_WGET:-http://downloads.sourceforge.net/offo/$HYPH_SRC} |
|
|
|
|
|
|
|
|
@ -81,11 +82,12 @@ unzip $CWD/$HYPH_SRC |
|
|
|
|
mkdir -p $PKG/usr/lib/apache-xml |
|
|
|
|
install -m 644 \ |
|
|
|
|
lib/avalon-framework-4.2.0.jar \ |
|
|
|
|
lib/batik-all-1.7.jar \ |
|
|
|
|
lib/batik-all-1.8.jar \ |
|
|
|
|
lib/commons-io-1.3.1.jar \ |
|
|
|
|
lib/commons-logging-1.0.4.jar \ |
|
|
|
|
lib/fontbox-1.8.5.jar \ |
|
|
|
|
lib/xml-apis-ext-1.3.04.jar \ |
|
|
|
|
lib/xmlgraphics-commons-1.5.jar \ |
|
|
|
|
lib/xmlgraphics-commons-2.0.1.jar \ |
|
|
|
|
offo-hyphenation-binary/fop-hyph.jar \ |
|
|
|
|
$PKG/usr/lib/apache-xml |
|
|
|
|
install -m 644 build/fop.jar $PKG/usr/lib/apache-xml/fop-$VERSION.jar |
|
|
|
@ -98,10 +100,7 @@ install -m 755 $CWD/ttf2fop.sh $PKG/usr/bin/ttf2fop |
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME/offo |
|
|
|
|
install -m 644 LICENSE README $PKG/usr/doc/$NAME |
|
|
|
|
find docs -type f -name '*.xml' -delete |
|
|
|
|
find docs -type f -name '*.pdf' -delete |
|
|
|
|
mv docs $PKG/usr/doc/$NAME/html |
|
|
|
|
mv javadocs $PKG/usr/doc/$NAME/html/apidocs |
|
|
|
|
mv javadocs $PKG/usr/doc/$NAME/apidocs |
|
|
|
|
mv examples $PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 offo-hyphenation-binary/*.html $PKG/usr/doc/$NAME/offo |
|
|
|
|
cp -r offo-hyphenation-binary/{images,skin} $PKG/usr/doc/$NAME/offo |
|
|
|
|