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 | |
parent | 9fd36e098c94ba888812f2c9a56db1463b66025b (diff) |
business/tryton: Updated for version 3.0.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'business')
-rw-r--r-- | business/tryton/README | 2 | ||||
-rw-r--r-- | business/tryton/doinst.sh | 3 | ||||
-rw-r--r-- | business/tryton/tryton.SlackBuild | 64 | ||||
-rw-r--r-- | business/tryton/tryton.info | 8 |
4 files changed, 42 insertions, 35 deletions
diff --git a/business/tryton/README b/business/tryton/README index e03ef204af7d4..1232841144c83 100644 --- a/business/tryton/README +++ b/business/tryton/README @@ -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). diff --git a/business/tryton/doinst.sh b/business/tryton/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/business/tryton/doinst.sh @@ -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 diff --git a/business/tryton/tryton.SlackBuild b/business/tryton/tryton.SlackBuild index 4bf638475bd6e..286a3314d3c30 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} diff --git a/business/tryton/tryton.info b/business/tryton/tryton.info index 829ad1c780f0e..0bbf70a24cd84 100644 --- a/business/tryton/tryton.info +++ b/business/tryton/tryton.info @@ -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" |