mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
107 lines
3.5 KiB
Bash
107 lines
3.5 KiB
Bash
SUMMARY="A Practice Fractions"
|
|
DESCRIPTION="KBruch is a small program to practice calculating with fractions and percentages. \
|
|
Different exercises are provided for this purpose and you can use the learning mode to practice \
|
|
with fractions. The program checks the user's input and gives feedback.
|
|
|
|
Features:
|
|
* Arithmetic exercise - in this exercise you have to solve a given fraction task. You have to \
|
|
enter the numerator and the denominator. This is the main exercise.
|
|
* Comparison exercise - in this exercise you have to compare the size of 2 given fractions, using \
|
|
the symbols >, < or =.
|
|
* Conversion exercise - in this exercise you have to convert a given number into a fraction.
|
|
* Factorization exercise - in this exercise you have to factorize a given number into its prime \
|
|
factors.
|
|
* Percentage exercise - in this exercise you have to calculate percentages."
|
|
HOMEPAGE="https://invent.kde.org/education/kbruch"
|
|
COPYRIGHT="2002-2011 Sebastian Stein
|
|
2010-2024 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kbruch-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="db7d47e7823bc9ff5824a86e690638bdc8ae7507ff32ad772a80c63b87e01182"
|
|
ADDITIONAL_FILES="kbruch.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="5.24.5"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kbruch$secondaryArchSuffix = $portVersion
|
|
cmd:kbruch$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libKF5Auth$secondaryArchSuffix
|
|
lib:libKF5AuthCore$secondaryArchSuffix
|
|
lib:libKF5Codecs$secondaryArchSuffix
|
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
|
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
|
lib:libKF5Crash$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libKF5WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF5XmlGui$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= 5.115
|
|
devel:libKF5Auth$secondaryArchSuffix
|
|
devel:libKF5Codecs$secondaryArchSuffix
|
|
devel:libKF5ConfigCore$secondaryArchSuffix
|
|
devel:libKF5ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF5CoreAddons$secondaryArchSuffix
|
|
devel:libKF5Crash$secondaryArchSuffix
|
|
devel:libKF5I18n$secondaryArchSuffix
|
|
devel:libKF5WidgetsAddons$secondaryArchSuffix
|
|
devel:libKF5XmlGui$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt
|
|
cmd:msgmerge
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
|
|
-DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \
|
|
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local APP_NAME="KBruch"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.kbruch"
|
|
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/kbruch.rdef.in > kbruch.rdef
|
|
|
|
addResourcesToBinaries kbruch.rdef $binDir/kbruch
|
|
|
|
addAppDeskbarSymlink $binDir/kbruch KBruch
|
|
}
|