mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 23:18:58 +02:00
120 lines
3.4 KiB
Bash
120 lines
3.4 KiB
Bash
SUMMARY="Check hashes for your files"
|
|
DESCRIPTION="Verifying that a file you downloaded or received is actually the one you were \
|
|
expecting is often overlooked or too time-consuming to do. At the same time, it has become very \
|
|
easy to get your hands on a file that has been tampered with, due to the mass increase of \
|
|
malicious webpages and other actors.
|
|
|
|
This tool aims to solve that. Hash-o-matic comes with a simple & clean UI, allowing anyone, from \
|
|
any age and experience group, to generate, compare and verify MD5, SHA-256 and SHA-1 hashes.
|
|
|
|
Hash-o-Matic also support verifying a file with the help of a PGP signature."
|
|
HOMEPAGE="https://apps.kde.org/hashomatic"
|
|
COPYRIGHT="2010-2024 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/hash-o-matic/hash-o-matic-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="bfabdc12234f9ae73ba652d881d66e9220fba3f8bbf6074fcde6a0e90cc7fc1a"
|
|
SOURCE_DIR="hash-o-matic-$portVersion"
|
|
PATCHES="hashomatic-$portVersion.patchset"
|
|
ADDITIONAL_FILES="hashomatic.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
hashomatic$secondaryArchSuffix = $portVersion
|
|
cmd:hashomatic$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libassuan$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libgpgmepp$secondaryArchSuffix
|
|
lib:libqgpgmeqt6$secondaryArchSuffix
|
|
# KF6
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libKF6CoreAddons$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
# KPim6
|
|
lib:libKPim6Libkleo$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Qml$secondaryArchSuffix
|
|
lib:libQt6Quick$secondaryArchSuffix
|
|
lib:libQt6Svg$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgpgmepp$secondaryArchSuffix
|
|
devel:libqgpgmeqt6$secondaryArchSuffix
|
|
# KF6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKirigamiPlatform$secondaryArchSuffix
|
|
devel:libKF6ConfigCore$secondaryArchSuffix
|
|
devel:libKF6CoreAddons$secondaryArchSuffix
|
|
devel:libKF6DbusAddons$secondaryArchSuffix
|
|
devel:libKF6I18n$secondaryArchSuffix
|
|
# KPim6
|
|
devel:libKPim6Libkleo$secondaryArchSuffix
|
|
# Qt6
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
devel:libQt6Svg$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:git
|
|
cmd:make
|
|
cmd:msgfmt
|
|
cmd:msgmerge
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
qthaikuplugins$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
|
-DBUILD_TESTING=OFF
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/{applications,metainfo}
|
|
|
|
mkdir -p "$dataDir/deskbar/menu/Applications/KDE"
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="0"
|
|
local APP_NAME="Hash-o-matic"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.hashomatic"
|
|
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/hashomatic.rdef.in > hashomatic.rdef
|
|
|
|
addResourcesToBinaries hashomatic.rdef $binDir/hashomatic
|
|
addAppDeskbarSymlink $binDir/hashomatic "KDE/Hash-o-matic"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ctest --test-dir build --output-on-failure
|
|
}
|