diff options
author | Ken Roberts <alisonken1@juno.com> | 2014-04-15 23:10:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-04-23 07:51:26 +0700 |
commit | a56822128b587b18b333c4c55c24262f5fdd6b1a (patch) | |
tree | 4f72266f22e04740d16acc77c07fec055e2028e8 /business/tryton/tryton.SlackBuild | |
parent | 9fd36e098c94ba888812f2c9a56db1463b66025b (diff) | |
download | slackbuilds-a56822128b587b18b333c4c55c24262f5fdd6b1a.tar.gz |
business/tryton: Updated for version 3.0.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'business/tryton/tryton.SlackBuild')
-rw-r--r-- | business/tryton/tryton.SlackBuild | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/business/tryton/tryton.SlackBuild b/business/tryton/tryton.SlackBuild index 4bf638475b..286a3314d3 100644 --- a/business/tryton/tryton.SlackBuild +++ b/business/tryton/tryton.SlackBuild @@ -1,8 +1,8 @@ #!/bin/sh -# Slackware build script for Tryton client +# Slackware build script for tryton -# Copyright 2014, Ken Roberts, California, USA" +# Copyright 2014 Ken Roberts # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -11,19 +11,19 @@ # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=tryton -VERSION=${VERSION:-3.0.2} +VERSION=${VERSION:-3.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,10 +41,13 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -72,30 +75,29 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +if [ -x /usr/bin/sphinx ] ; then + ( cd $TMP/$PRGNAM-$VERSION/doc + make html + make pickle + make json + make htmlhelp + make qthelp + make changes + PAPER=${PAPER:-letter} make latex + cp -a _build_/* $PKG/usr/doc/$PRGNAM-$VERSION + ) +fi + cp -a COPYRIGHT INSTALL CHANGELOG LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mkdir -p $PKG/usr/share/applications -cat $TMP/$PRGNAM-$VERSION/$PRGNAM.desktop >$PKG/usr/share/applications/$PRGNAM.desktop +# Add the desktop file +mkdir $PKG/usr/share/applications +cp -a tryton.desktop $PKG/usr/share/applications/tryton.desktop mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc - -# Make documentation -if [ -x /usr/bin/sphinx ] ; then - ( cd doc - make html - make pickle - make json - make htmlhelp - make qthelp - PAPER=letter make latex - mv ./_build/* $PKG/usr/doc/$PRGNAM-$VERSION/ - ) -else - echo "Sphinx documenation program not found" - echo "Skipping document building" -fi +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |