mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
140 lines
4.5 KiB
Bash
140 lines
4.5 KiB
Bash
SUMMARY="Touch typing tutor"
|
|
DESCRIPTION="KTouch is a typewriter trainer for learning to touch type. It provides you with text \
|
|
to train on and adjusts to different levels depending on how good you are. It displays your \
|
|
keyboard and indicates which key to press next and which is the correct finger to use. You learn \
|
|
typing with all fingers, step by step, without having to look down at the keyboard to find your \
|
|
keys.
|
|
It is convenient for all ages and the perfect typing tutor for schools, universities, and \
|
|
personal use. KTouch ships with dozens of different courses in many languages and a comfortable \
|
|
course editor. Different keyboard layouts are supported and new user-defined layouts can be \
|
|
created.
|
|
During training, KTouch collects comprehensive statistical information to help you or your \
|
|
teacher to analyze your progress."
|
|
HOMEPAGE="https://apps.kde.org/ktouch/"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/ktouch-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="c33fcd880e70b503f7d5a4a0cb6ba01c3218d9b3cf8c0231505602f272a6f4ad"
|
|
SOURCE_DIR="ktouch-$portVersion"
|
|
ADDITIONAL_FILES="ktouch.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
ktouch$secondaryArchSuffix = $portVersion
|
|
cmd:ktouch$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
kqtquickcharts_kf6$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
# KF6
|
|
lib:libKF6ColorScheme$secondaryArchSuffix
|
|
lib:libKF6Completion$secondaryArchSuffix
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libKF6ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF6CoreAddons$secondaryArchSuffix
|
|
lib:libKF6GuiAddons$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
lib:libKF6ItemViews$secondaryArchSuffix
|
|
lib:libKF6KCMUtils$secondaryArchSuffix
|
|
lib:libKF6SonnetUi$secondaryArchSuffix
|
|
lib:libKF6TextWidgets$secondaryArchSuffix
|
|
lib:libKF6WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF6WindowSystem$secondaryArchSuffix
|
|
lib:libKF6XmlGui$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
lib:libQt6Qml$secondaryArchSuffix
|
|
lib:libQt6Quick$secondaryArchSuffix
|
|
lib:libQt6Sql$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
lib:libQt6Xml$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:kqtquickcharts_kf6$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
# KF6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF6Completion$secondaryArchSuffix
|
|
devel:libKF6ConfigCore$secondaryArchSuffix
|
|
devel:libKF6ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF6CoreAddons$secondaryArchSuffix
|
|
devel:libKF6I18n$secondaryArchSuffix
|
|
devel:libKF6ItemViews$secondaryArchSuffix
|
|
devel:libKF6KCMUtils$secondaryArchSuffix
|
|
devel:libKF6TextWidgets$secondaryArchSuffix
|
|
devel:libKF6WidgetsAddons$secondaryArchSuffix
|
|
devel:libKF6WindowSystem$secondaryArchSuffix
|
|
devel:libKF6XmlGui$secondaryArchSuffix
|
|
# Qt6
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
# disable docs generation
|
|
sed -e '/ DocTools/ s/^#*/#/' -i CMakeLists.txt
|
|
sed -e '/ecm_optional_add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
|
-Wno-dev
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/{applications,config.kcfg,icons,metainfo}
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local APP_NAME="KTouch"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.ktouch"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
-e "s|@APP_NAME@|$APP_NAME|" \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
$portDir/additional-files/ktouch.rdef.in > ktouch.rdef
|
|
|
|
addResourcesToBinaries ktouch.rdef $commandBinDir/ktouch
|
|
addAppDeskbarSymlink $commandBinDir/ktouch KTouch
|
|
}
|