diff options
Diffstat (limited to 'development/tea')
-rw-r--r-- | development/tea/README | 9 | ||||
-rw-r--r-- | development/tea/tea.SlackBuild | 44 | ||||
-rw-r--r-- | development/tea/tea.desktop | 1 | ||||
-rw-r--r-- | development/tea/tea.info | 12 |
4 files changed, 40 insertions, 26 deletions
diff --git a/development/tea/README b/development/tea/README index 3d1f287af3..be64d66032 100644 --- a/development/tea/README +++ b/development/tea/README @@ -1,8 +1,7 @@ TEA is the text editor for UNIX-like systems and Windows. With an ultimate small size, TEA provides you hundreds of functions. -TEA is by default built against qt4. In building TEA against qt5, -install qt5 (from slackbuilds.org) and run the script with the -following command: - -QT5=yes ./tea.SlackBuild +TEA is by default built against qt5. +It could be built against qt4 or even qt6, if they are installed, using: +QT4=yes ./tea.SlackBuild +QT6=yes ./tea.SlackBuild diff --git a/development/tea/tea.SlackBuild b/development/tea/tea.SlackBuild index 43b04928ae..2fa0f64f94 100644 --- a/development/tea/tea.SlackBuild +++ b/development/tea/tea.SlackBuild @@ -1,10 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for tea # Written by Nai (bluedbs@gmail.com) - -# Copyright 2018 Isaac Yu <isaacyu1@isaacyu1.com> -# All rights reserved. +# Isaac Yu <isaacyu1@isaacyu1.com> +# Yth | Pont-en-Royans, France | yth@ythogtha.org # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: @@ -23,10 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=tea -VERSION=${VERSION:-47.0.1} +VERSION=${VERSION:-62.4.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=tea-qt if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +40,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -50,6 +61,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -60,9 +74,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -70,10 +84,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -if [ ${QT5:-no} = yes ]; then - QMAKE=qmake-qt5 +if [ ${QT4:-no} = yes ]; then + QMAKE=qmake-qt4 +elif [ ${QT6:-no} = yes ]; then + QMAKE=qmake6 else - QMAKE=qmake + QMAKE=qmake-qt5 fi $QMAKE "PREFIX=/usr/bin" "QMAKE_CXXFLAGS+=$SLKCFLAGS" "QMAKE_CFLAGS+=$SLKCFLAGS" @@ -90,7 +106,7 @@ cp -f icons/tea_icon_v2.png $PKG/usr/share/pixmaps mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS COPYING ChangeLog \ - manuals/* NEWS README TODO \ + manuals/* NEWS* README* TODO* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -99,4 +115,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/tea/tea.desktop b/development/tea/tea.desktop index 4497cd209d..67ed21de52 100644 --- a/development/tea/tea.desktop +++ b/development/tea/tea.desktop @@ -1,4 +1,3 @@ - [Desktop Entry] Type=Application Name=tea diff --git a/development/tea/tea.info b/development/tea/tea.info index b7f14f9e3b..ab445a2332 100644 --- a/development/tea/tea.info +++ b/development/tea/tea.info @@ -1,10 +1,10 @@ PRGNAM="tea" -VERSION="47.0.1" -HOMEPAGE="http://semiletov.org/tea/" -DOWNLOAD="http://semiletov.org/tea/dloads/tea-47.0.1.tar.bz2" -MD5SUM="7af54f1421edbd7e417d0eb43e958321" +VERSION="62.4.0" +HOMEPAGE="https://tea.ourproject.org/" +DOWNLOAD="https://github.com/psemiletov/tea-qt/archive/62.4.0/tea-qt-62.4.0.tar.gz" +MD5SUM="6e186e204a92111ee35fd47f26d5cf4c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Isaac Yu" -EMAIL="isaacyu@isaacyu1.com" +MAINTAINER="Yth - Arnaud" +EMAIL="yth@ythogtha.org" |