mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
86 lines
2.4 KiB
Bash
86 lines
2.4 KiB
Bash
SUMMARY="Front-End to clamav"
|
|
DESCRIPTION="A tool that simplifies virus scanning on Linux \
|
|
This application provides a graphical user interface for clamav and freshclam with an integrated \
|
|
service menu for Konqueror/Dolphin to scan files directly from your file manager."
|
|
HOMEPAGE="https://github.com/wusel1007/ClamAV-GUI/"
|
|
COPYRIGHT="2015-2026 Joerg Macedo da Costa Zopes"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
srcGitRev="a969341f774fe671940b9d26fdb4f3fedadad114"
|
|
SOURCE_URI="https://github.com/wusel1007/clamav-gui/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="43423259a7625b0890ad4ee87fc607973d7460adcaf7fabd73655b8272e1b6cb"
|
|
SOURCE_DIR="clamav-gui-$portVersion"
|
|
PATCHES="clamav_gui-$portVersion.patchset"
|
|
ADDITIONAL_FILES="clamav_gui.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
clamav_gui$secondaryArchSuffix = $portVersion
|
|
cmd:ClamAV_GUI = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
cmd:clamd$secondaryArchSuffix
|
|
cmd:freshclam$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Core5Compat$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Core5Compat$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libQt6Widgets$secondaryArchSuffix
|
|
devel:libQt6Network$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:qmake6$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$prefix/bin
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# cleanup
|
|
rm -rf $prefix/usr
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local APP_NAME="ClamAV-GUI"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.clamav-gui"
|
|
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/clamav_gui.rdef.in > clamav_gui.rdef
|
|
|
|
addResourcesToBinaries clamav_gui.rdef $prefix/bin/clamav-gui
|
|
|
|
addAppDeskbarSymlink $prefix/bin/clamav-gui ClamAV-GUI
|
|
}
|