mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
117 lines
3.7 KiB
Bash
117 lines
3.7 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-2025 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="034ab74980f9ec5897eb96db4f6d3e4a53c3d4de773609426330f2c6670436be"
|
|
SOURCE_DIR="kbruch-$portVersion"
|
|
ADDITIONAL_FILES="kbruch.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
kbruch$secondaryArchSuffix = $portVersion
|
|
app:KBruch = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
# KF6
|
|
lib:libKF6AuthCore$secondaryArchSuffix
|
|
lib:libKF6AuthCore$secondaryArchSuffix
|
|
lib:libKF6Codecs$secondaryArchSuffix
|
|
lib:libKF6ColorScheme$secondaryArchSuffix
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libKF6ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF6CoreAddons$secondaryArchSuffix
|
|
lib:libKF6Crash$secondaryArchSuffix
|
|
lib:libKF6GuiAddons$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
lib:libKF6WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF6XmlGui$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
# KF6
|
|
devel:libKF6AuthCore$secondaryArchSuffix
|
|
devel:libKF6Codecs$secondaryArchSuffix
|
|
devel:libKF6ColorScheme$secondaryArchSuffix
|
|
devel:libKF6ConfigCore$secondaryArchSuffix
|
|
devel:libKF6ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF6CoreAddons$secondaryArchSuffix
|
|
devel:libKF6Crash$secondaryArchSuffix
|
|
devel:libKF6GuiAddons$secondaryArchSuffix
|
|
devel:libKF6I18n$secondaryArchSuffix
|
|
devel:libKF6WidgetsAddons$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
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$appsDir \
|
|
-DCMAKE_SKIP_RPATH=YES
|
|
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/{applications,icons,metainfo}
|
|
|
|
mv $appsDir/kbruch $appsDir/KBruch
|
|
|
|
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.kde-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 $appsDir/KBruch
|
|
addAppDeskbarSymlink $appsDir/KBruch
|
|
}
|