Skip to content

Commit 8aae70f

Browse files
qunyingsbo-bot[bot]
authored andcommitted
libraries/tvision: Added (Turbo Vision Port).
1 parent 025fc8f commit 8aae70f

File tree

4 files changed

+140
-0
lines changed

4 files changed

+140
-0
lines changed

libraries/tvision/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
A modern port of Turbo Vision 2.0, the classical framework for
2+
text-based user interfaces.
3+
4+
Now cross-platform and with Unicode support.

libraries/tvision/slack-desc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# HOW TO EDIT THIS FILE:
2+
# The "handy ruler" below makes it easier to edit a package description.
3+
# Line up the first '|' above the ':' following the base package name, and
4+
# the '|' on the right side marks the last column you can put a character in.
5+
# You must make exactly 11 lines for the formatting to be correct. It's also
6+
# customary to leave one space after the ':' except on otherwise blank lines.
7+
8+
|-----handy-ruler------------------------------------------------------|
9+
tvision: tvision (Turbo Vision)
10+
tvision:
11+
tvision: A modern port of Turbo Vision 2.0, the classical framework for
12+
tvision: text-based user interfaces.
13+
tvision:
14+
tvision: Now cross-platform and with Unicode support.
15+
tvision:
16+
tvision: home: https://github.com/magiblot/tvision
17+
tvision:
18+
tvision:
19+
tvision:
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
#!/bin/bash
2+
3+
# Slackware build script for <tvision>
4+
5+
# Copyright 2026 Zhu, Qun-Ying
6+
# All rights reserved.
7+
#
8+
# Redistribution and use of this script, with or without modification, is
9+
# permitted provided that the following conditions are met:
10+
#
11+
# 1. Redistributions of this script must retain the above copyright
12+
# notice, this list of conditions and the following disclaimer.
13+
#
14+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
15+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16+
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17+
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18+
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20+
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21+
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22+
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24+
25+
cd $(dirname $0) ; CWD=$(pwd)
26+
27+
PRGNAM=tvision
28+
SRC_VER=${SRC_VER:-85aaeca0999c8b53006c556ccda063f143d259ca}
29+
VERSION=${VERSION:-20260111_85aaeca}
30+
BUILD=${BUILD:-1}
31+
TAG=${TAG:-_SBo}
32+
PKGTYPE=${PKGTYPE:-tgz}
33+
34+
if [ -z "$ARCH" ]; then
35+
case "$( uname -m )" in
36+
i?86) ARCH=i586 ;;
37+
arm*) ARCH=arm ;;
38+
*) ARCH=$( uname -m ) ;;
39+
esac
40+
fi
41+
42+
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
43+
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
44+
exit 0
45+
fi
46+
47+
TMP=${TMP:-/tmp/SBo}
48+
PKG=$TMP/package-$PRGNAM
49+
OUTPUT=${OUTPUT:-/tmp}
50+
51+
if [ "$ARCH" = "i586" ]; then
52+
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
53+
LIBDIRSUFFIX=""
54+
elif [ "$ARCH" = "i686" ]; then
55+
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
56+
LIBDIRSUFFIX=""
57+
elif [ "$ARCH" = "x86_64" ]; then
58+
SLKCFLAGS="-O2 -fPIC"
59+
LIBDIRSUFFIX="64"
60+
elif [ "$ARCH" = "aarch64" ]; then
61+
SLKCFLAGS="-O2 -fPIC"
62+
LIBDIRSUFFIX="64"
63+
else
64+
SLKCFLAGS="-O2"
65+
LIBDIRSUFFIX=""
66+
fi
67+
68+
set -e
69+
70+
rm -rf $PKG
71+
mkdir -p $TMP $PKG $OUTPUT
72+
cd $TMP
73+
rm -rf $PRGNAM-$VERSION
74+
mkdir $PRGNAM-$VERSION
75+
tar xvf $CWD/$PRGNAM-$SRC_VER.tar.gz -C $PRGNAM-$VERSION --strip-components=1
76+
cd $PRGNAM-$VERSION
77+
chown -R root:root .
78+
find -L . \
79+
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
80+
-o -perm 511 \) -exec chmod 755 {} \; -o \
81+
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
82+
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
83+
84+
mkdir -p build
85+
cd build
86+
cmake \
87+
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
88+
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
89+
-DCMAKE_INSTALL_PREFIX=/usr \
90+
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
91+
-DMAN_INSTALL_DIR=/usr/man \
92+
-DFILESDIR=ON \
93+
-DCMAKE_BUILD_TYPE=Release ..
94+
make
95+
make install/strip DESTDIR=$PKG
96+
cd ..
97+
98+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
99+
cp README.md $PKG/usr/doc/$PRGNAM-$VERSION
100+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
101+
cat $CWD/$PRGNAM.info > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.info
102+
103+
mkdir -p $PKG/install
104+
cat $CWD/slack-desc > $PKG/install/slack-desc
105+
106+
cd $PKG
107+
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}-$ARCH-$BUILD$TAG.$PKGTYPE

libraries/tvision/tvision.info

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PRGNAM="tvision"
2+
VERSION="20260111_85aaeca"
3+
HOMEPAGE="https://github.com/magiblot/tvision/"
4+
DOWNLOAD="https://github.com/magiblot/tvision/archive/85aaeca0999c8b53006c556ccda063f143d259ca/tvision-85aaeca0999c8b53006c556ccda063f143d259ca.tar.gz"
5+
MD5SUM="b678c3c6ccc3f54c322f810f08dc2ed0"
6+
DOWNLOAD_x86_64=""
7+
MD5SUM_x86_64=""
8+
REQUIRES=""
9+
MAINTAINER="Zhu, Qun-Ying"
10+

0 commit comments

Comments
 (0)