Skip to content

Commit f9756ad

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

File tree

4 files changed

+146
-0
lines changed

4 files changed

+146
-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: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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+
VERSION=${VERSION:-85aaeca}
29+
SRC_VER=${SRC_VER:-85aaeca0999c8b53006c556ccda063f143d259ca}
30+
COMMIT_DATE="20260111"
31+
BUILD=${BUILD:-1}
32+
TAG=${TAG:-_SBo}
33+
PKGTYPE=${PKGTYPE:-tgz}
34+
35+
if [ -z "$ARCH" ]; then
36+
case "$( uname -m )" in
37+
i?86) ARCH=i586 ;;
38+
arm*) ARCH=arm ;;
39+
*) ARCH=$( uname -m ) ;;
40+
esac
41+
fi
42+
43+
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
44+
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
45+
exit 0
46+
fi
47+
48+
TMP=${TMP:-/tmp/SBo}
49+
PKG=$TMP/package-$PRGNAM
50+
OUTPUT=${OUTPUT:-/tmp}
51+
52+
if [ "$ARCH" = "i586" ]; then
53+
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
54+
LIBDIRSUFFIX=""
55+
elif [ "$ARCH" = "i686" ]; then
56+
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
57+
LIBDIRSUFFIX=""
58+
elif [ "$ARCH" = "x86_64" ]; then
59+
SLKCFLAGS="-O2 -fPIC"
60+
LIBDIRSUFFIX="64"
61+
elif [ "$ARCH" = "aarch64" ]; then
62+
SLKCFLAGS="-O2 -fPIC"
63+
LIBDIRSUFFIX="64"
64+
else
65+
SLKCFLAGS="-O2"
66+
LIBDIRSUFFIX=""
67+
fi
68+
69+
set -e
70+
71+
rm -rf $PKG
72+
mkdir -p $TMP $PKG $OUTPUT
73+
cd $TMP
74+
rm -rf $PRGNAM-$VERSION
75+
mkdir $PRGNAM-$VERSION
76+
tar xvf $CWD/$PRGNAM-$SRC_VER.tar.gz -C $PRGNAM-$VERSION --strip-components=1
77+
cd $PRGNAM-$VERSION
78+
chown -R root:root .
79+
find -L . \
80+
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
81+
-o -perm 511 \) -exec chmod 755 {} \; -o \
82+
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
83+
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
84+
85+
mkdir -p build
86+
cd build
87+
cmake \
88+
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
89+
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
90+
-DCMAKE_INSTALL_PREFIX=/usr \
91+
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
92+
-DMAN_INSTALL_DIR=/usr/man \
93+
-DFILESDIR=ON \
94+
-DCMAKE_BUILD_TYPE=Release ..
95+
make
96+
make install/strip DESTDIR=$PKG
97+
cd ..
98+
99+
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
100+
101+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
102+
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
103+
104+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
105+
cp README.md $PKG/usr/doc/$PRGNAM-$VERSION
106+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
107+
cat $CWD/$PRGNAM.info > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.info
108+
109+
mkdir -p $PKG/install
110+
cat $CWD/slack-desc > $PKG/install/slack-desc
111+
112+
cd $PKG
113+
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_$COMMIT_DATE-$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="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)