summaryrefslogtreecommitdiff
path: root/office/fop/fop.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/fop/fop.SlackBuild')
-rw-r--r--office/fop/fop.SlackBuild30
1 files changed, 13 insertions, 17 deletions
diff --git a/office/fop/fop.SlackBuild b/office/fop/fop.SlackBuild
index 0b7e2f712a..1205679527 100644
--- a/office/fop/fop.SlackBuild
+++ b/office/fop/fop.SlackBuild
@@ -23,24 +23,22 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fop
-VERSION=${VERSION:-1.1}
+VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -56,7 +54,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -75,9 +73,9 @@ find -L . \
sed -i '\@</javad@i<arg value="-Xdoclint:none"/>' build.xml
# Compiles with apache-ant:
-ant compile
-ant jar-main
-ant javadocs
+ant compile
+ant jar-main
+ant javadocs
mv build/javadocs .
@@ -86,21 +84,19 @@ install -v -d -m755 $PKG/opt/$PRGNAM-$VERSION/
cp -va build conf examples fop* javadocs lib status.xml \
$PKG/opt/$PRGNAM-$VERSION
-
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
+
# Create fop symlink to /usr/bin:
mkdir -p $PKG/usr/bin
( ln -sf /opt/${PRGNAM}-${VERSION}/${PRGNAM} $PKG/usr/bin/ )
-
+
# Symlink it all to /opt/fop so the .foprc won't need edited every update:
-( cd $PKG/opt ; ln -sf ${PRGNAM}-${VERSION} ${PRGNAM} )
+( cd $PKG/opt ; ln -sf ${PRGNAM}-${VERSION} ${PRGNAM} )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README NOTICE LICENSE KEYS \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README NOTICE LICENSE KEYS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install