summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Isaac Yu <isaacyu@isaacyu1.com>2018-01-13 17:24:53 +0000
committer David Spencer <idlemoor@slackbuilds.org>2018-01-13 17:25:35 +0000
commit2bc9eec3b12c066593643d204b18c072a356448d (patch)
tree64059df23207e9fa86fbef26716c4de0b52865c3
parent42a738469ca535c954b1fc67c84f6835b106f064 (diff)
downloadslackbuilds-2bc9eec3b.tar.gz
slackbuilds-2bc9eec3b.tar.xz
development/tea: Updated for version 44.1.1 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--development/tea/README7
-rw-r--r--development/tea/doinst.sh6
-rw-r--r--development/tea/tea.SlackBuild38
-rw-r--r--development/tea/tea.info10
4 files changed, 47 insertions, 14 deletions
diff --git a/development/tea/README b/development/tea/README
index 295cd2c..59e83a1 100644
--- a/development/tea/README
+++ b/development/tea/README
@@ -1,2 +1,7 @@
-TEA is the text text editor for UNIX-like systems and Windows. With an
+TEA is the text editor for UNIX-like systems and Windows. With an
ultimate small size, TEA provides you hundreds of functions.
+
+If you prefer to build TEA against Qt5 rather than Qt4, install
+qt5 (available from SlackBuilds.org) and run the script like that:
+
+USE_QT5=yes ./tea.SlackBuild
diff --git a/development/tea/doinst.sh b/development/tea/doinst.sh
index 5fb2893..65c7e2e 100644
--- a/development/tea/doinst.sh
+++ b/development/tea/doinst.sh
@@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/development/tea/tea.SlackBuild b/development/tea/tea.SlackBuild
index cb72975..703ad8c 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
diff --git a/development/tea/tea.info b/development/tea/tea.info
index fd15f60..6b52426 100644
--- a/development/tea/tea.info
+++ b/development/tea/tea.info
@@ -1,10 +1,10 @@
PRGNAM="tea"
-VERSION="37.2.1"
+VERSION="44.1.1"
HOMEPAGE="http://semiletov.org/tea/"
-DOWNLOAD="http://semiletov.org/tea/dloads/tea-37.2.1.tar.bz2"
-MD5SUM="a74c2d18cc2cace9d961d1a215b19e31"
+DOWNLOAD="http://semiletov.org/tea/dloads/tea-44.1.1.tar.bz2"
+MD5SUM="04fea62bfa425b2d81244717a108f078"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Nai"
-EMAIL="bluedbs@gmail.com"
+MAINTAINER="Isaac Yu"
+EMAIL="isaacyu@isaacyu1.com"