business/tryton: Updated for version 3.0.3.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ken Roberts 2014-04-15 23:10:34 +07:00 committed by Willy Sudiarto Raharjo
parent 9fd36e098c
commit a56822128b
4 changed files with 42 additions and 35 deletions

View file

@ -10,5 +10,7 @@ the same host or available via the network.
If you want to integrate Google Calendar, then install
GooCalendar (http://code.google.com/p/goocalendar/) - Not available on SBo.
Optional is cdecimal (not available in SBo) to replace stock decimal module.
If you want to install the documentation, optional dependency is Sphinx
documentation program (development/Sphinx).

View file

@ -0,0 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -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}

View file

@ -1,10 +1,10 @@
PRGNAM="tryton"
VERSION="3.0.2"
VERSION="3.0.3"
HOMEPAGE="http://www.tryton.org"
DOWNLOAD="http://downloads.tryton.org/3.0/tryton-3.0.2.tar.gz"
MD5SUM="0d3f2bd8662b222226676afcc23f38c7"
DOWNLOAD="http://downloads.tryton.org/3.0/tryton-3.0.3.tar.gz"
MD5SUM="2b42241ed44de8c8936838c59ab850cd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python-dateutil pytz simplejson"
REQUIRES="simplejson pytz trytond"
MAINTAINER="Ken Roberts"
EMAIL="alisonken1@juno.com"