mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
kruler, bump to version 24.12.3 (#12050)
This commit is contained in:
@@ -4,11 +4,11 @@ point and measure the precise pixel distance between the starting point and your
|
||||
HOMEPAGE="https://apps.kde.org/kruler/"
|
||||
COPYRIGHT="2000-2008, Till Krech
|
||||
2009 Mathias Soeken
|
||||
2010-2024 KDE Organisation"
|
||||
2010-2025 KDE Organisation"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kruler-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="5323feef00b77a8754b7e68a0de99c516040834ff7f8d626e051b6a0e1490a4b"
|
||||
CHECKSUM_SHA256="ab90ffbc2aecf84ff2d569d6d53e2beba9447558b2785d6193feb7f33d69ddc7"
|
||||
ADDITIONAL_FILES="kruler.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
@@ -16,7 +16,7 @@ SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
kruler$secondaryArchSuffix = $portVersion
|
||||
cmd:kruler$secondaryArchSuffix = $portVersion
|
||||
app:KRuler$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -27,6 +27,8 @@ REQUIRES="
|
||||
lib:libKF6ConfigGui$secondaryArchSuffix
|
||||
lib:libKF6ConfigWidgets$secondaryArchSuffix
|
||||
lib:libKF6CoreAddons$secondaryArchSuffix
|
||||
lib:libKF6Crash$secondaryArchSuffix
|
||||
lib:libKF6GuiAddons$secondaryArchSuffix
|
||||
lib:libKF6I18n$secondaryArchSuffix
|
||||
lib:libKF6Notifications$secondaryArchSuffix
|
||||
lib:libKF6StatusNotifierItem$secondaryArchSuffix
|
||||
@@ -50,6 +52,8 @@ BUILD_REQUIRES="
|
||||
devel:libKF6ConfigCore$secondaryArchSuffix
|
||||
devel:libKF6ConfigWidgets$secondaryArchSuffix
|
||||
devel:libKF6CoreAddons$secondaryArchSuffix
|
||||
devel:libKF6Crash$secondaryArchSuffix
|
||||
devel:libKF6GuiAddons$secondaryArchSuffix
|
||||
devel:libKF6I18n$secondaryArchSuffix
|
||||
devel:libKF6Notifications$secondaryArchSuffix
|
||||
devel:libKF6StatusNotifierItem$secondaryArchSuffix
|
||||
@@ -64,16 +68,19 @@ BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgfmt
|
||||
cmd:msgmerge
|
||||
cmd:msgfmt$secondaryArchSuffix
|
||||
cmd:msgmerge$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_BINDIR=$appsDir \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-Wno-dev
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
@@ -84,12 +91,14 @@ INSTALL()
|
||||
# cleanup
|
||||
rm -rf $dataDir/{applications,icons,metainfo}
|
||||
|
||||
mv $appsDir/kruler $appsDir/KRuler
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local APP_NAME="KRuler"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
local APP_SIGNATURE="application/x-vnd.kruler"
|
||||
local APP_SIGNATURE="application/x-vnd.kde-kruler"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
@@ -99,6 +108,6 @@ INSTALL()
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
$portDir/additional-files/kruler.rdef.in > kruler.rdef
|
||||
|
||||
addResourcesToBinaries kruler.rdef $binDir/kruler
|
||||
addAppDeskbarSymlink $binDir/kruler KRuler
|
||||
addResourcesToBinaries kruler.rdef $appsDir/KRuler
|
||||
addAppDeskbarSymlink $appsDir/KRuler
|
||||
}
|
||||
Reference in New Issue
Block a user