diff options
author | Isaac Yu <isaacyu@isaacyu1.com> | 2018-01-13 17:24:53 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-17 19:46:31 +0700 |
commit | 29ecf0a58a83e29e6f8624334443ee2f4e858b65 (patch) | |
tree | ac79d188d95e498ee649627e083799f2ef8c58a5 /development/tea/tea.SlackBuild | |
parent | 70cc380dcc7b07b9ca6ce2429b5414e90d1ca506 (diff) |
development/tea: Updated for version 44.1.1 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/tea/tea.SlackBuild')
-rw-r--r-- | development/tea/tea.SlackBuild | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/development/tea/tea.SlackBuild b/development/tea/tea.SlackBuild index cb7297540eecd..703ad8c13b6fb 100644 --- a/development/tea/tea.SlackBuild +++ b/development/tea/tea.SlackBuild @@ -3,14 +3,35 @@ # Slackware build script for tea # Written by Nai (bluedbs@gmail.com) +# Copyright 2018 Isaac Yu <isaacyu1@isaacyu1.com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 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 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=tea -VERSION=${VERSION:-37.2.1} +VERSION=${VERSION:-44.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -21,8 +42,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -50,10 +71,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -qmake \ - "PREFIX=/usr/bin" \ - "QMAKE_CXXFLAGS+=$SLKCFLAGS" \ - "QMAKE_CFLAGS+=$SLKCFLAGS" +if [ ${USE_QT5:-no} = yes]; then + qmake-qt5 "PREFIX=/usr/bin" "QMAKE_CXXFLAGS+=$SLKCFLAGS" "QMAKE_CFLAGS+=$SLKCFLAGS" +else + qmake "PREFIX=/usr/bin" "QMAKE_CXXFLAGS+=$SLKCFLAGS" "QMAKE_CFLAGS+=$SLKCFLAGS" +fi make make install INSTALL_ROOT=$PKG |