summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu@isaacyu1.com>2018-01-13 17:24:53 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-17 19:46:31 +0700
commit29ecf0a58a83e29e6f8624334443ee2f4e858b65 (patch)
treeac79d188d95e498ee649627e083799f2ef8c58a5
parent70cc380dcc7b07b9ca6ce2429b5414e90d1ca506 (diff)
downloadslackbuilds-29ecf0a58a83e29e6f8624334443ee2f4e858b65.tar.gz
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 295cd2cf9a..59e83a18d1 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 5fb28930db..65c7e2eeb9 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 cb7297540e..703ad8c13b 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 fd15f60728..6b52426657 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"