mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Kapow: Update to Qt 6, relocate to app-misc (#10322)
This commit is contained in:
33
app-misc/kapow/additional-files/kapow.rdef.in
Normal file
33
app-misc/kapow/additional-files/kapow.rdef.in
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
short_info = "Kapow",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource file_types message {
|
||||
"types" = "application/x-kpw"
|
||||
};
|
||||
|
||||
resource vector_icon {
|
||||
$"6E636966060400630500020106023D78A73AC235BB13DC3DDF65494EF149A18A"
|
||||
$"847AFF03FF187F0002010603BC4C38BA55C33AE130BCD56B49AFA249BF3DB2FF"
|
||||
$"FFFFD8007F33FFA9FF000329FF0503FFF4AC070204BFB138C64B38B9173824C3"
|
||||
$"A524BF3E24C80BC16660BACC60C80060604C60C8EE60C02102043F22C562B365"
|
||||
$"30232241233121C6833C5C2D5D4B5B593D58C4EB5A2D0204BE41B6DBC287B695"
|
||||
$"BA05B721B612BF4CB65ABAF027C3A6BD68C6A6B92D52C1A4C660C598BE35C54F"
|
||||
$"C28FC5E0B9DA08033E2E324A4844080345393B4037310604EE2F2B3F26362648"
|
||||
$"26523140234D2333230604EE44502F503554294C28472F54274F3759080A0001"
|
||||
$"00000A0101011815FF01178300040A02020201000A030102000A0401030A3EC8"
|
||||
$"0BBC00FC3AF02D3E0A0645885648045415FF0A0101041001178420040A050205"
|
||||
$"06000A0101011800150117840004"
|
||||
};
|
||||
83
app-misc/kapow/kapow-1.6.2.recipe
Normal file
83
app-misc/kapow/kapow-1.6.2.recipe
Normal file
@@ -0,0 +1,83 @@
|
||||
SUMMARY="Punch clock to track time spent on projects"
|
||||
DESCRIPTION="Kapow is a punch clock program designed to easily keep track of your \
|
||||
hours, whether you’re working on one project or many. Simply clock in and out with the \
|
||||
Start/Stop button. If you make a mistake in your hours, you can go back and edit any of \
|
||||
the entries by double-clicking on the session in question. Kapow also allows you to \
|
||||
easily keep track of the hours since you last billed a client, by providing a helpful \
|
||||
“Billed” checkbox—the totals will reflect your work after the last billed session."
|
||||
HOMEPAGE="https://gottcode.org/kapow/"
|
||||
COPYRIGHT="2008-2024 Graeme Gott"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://gottcode.org/kapow/kapow-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="aaeb1fe4f4fc671a7c3180757f9aa53f8466588ccce106eda84eba8c69adbf02"
|
||||
SOURCE_DIR="kapow-$portVersion"
|
||||
ADDITIONAL_FILES="kapow.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
kapow$secondaryArchSuffix = $portVersion
|
||||
app:Kapow = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
lib:libQt6Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Gui$secondaryArchSuffix
|
||||
devel:libQt6UiTools$secondaryArchSuffix
|
||||
devel:libQt6Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:linguist6$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . \
|
||||
-DCMAKE_BUILD_TYPE='None' \
|
||||
-DCMAKE_INSTALL_BINDIR=$appsDir \
|
||||
-DCMAKE_INSTALL_DATADIR=$dataDir/Kapow/ \
|
||||
-DCMAKE_INSTALL_MANDIR=$manDir
|
||||
|
||||
cmake --build build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cmake --install build
|
||||
mv $appsDir/kapow $appsDir/Kapow
|
||||
rm -rf $dataDir/Kapow/{metainfo,icons,applications}
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.gottcode-kapow"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/kapow.rdef.in > $sourceDir/kapow.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/kapow.rdef \
|
||||
$appsDir/Kapow
|
||||
|
||||
mimeset -f $appsDir/Kapow
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Kapow
|
||||
}
|
||||
Reference in New Issue
Block a user