diff options
author | Thorn Inurcide <thorn-inurcide@yandex.com> | 2015-08-30 08:34:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-08-30 08:34:32 +0700 |
commit | 7065fb0a3921e91f52bd997cefa1ab45c6aba4ff (patch) | |
tree | beaa7e9c88644c71ab17983736083bb409743ea9 /office/fop/fop.SlackBuild | |
parent | b86b213aaaa7eb1015ef86d574bc4ef43f968659 (diff) |
office/fop: Updated for version 2.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/fop/fop.SlackBuild')
-rw-r--r-- | office/fop/fop.SlackBuild | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/office/fop/fop.SlackBuild b/office/fop/fop.SlackBuild index 0b7e2f712aea..1205679527ae 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 |