Files
haikuports/kde-frameworks/solid/solid-5.115.0.recipe
Gerasim Troeglazov e3367da42e solid: bump version
2024-02-29 21:40:00 +10:00

96 lines
2.1 KiB
Bash

SUMMARY="Desktop hardware abstraction"
DESCRIPTION="Solid is a device integration framework. It provides a way of \
querying and interacting with hardware independently of the underlying \
operating system.
It provides the following features for application developers:
* Hardware Discovery
* Power Management
* Network Management"
HOMEPAGE="https://invent.kde.org/frameworks/solid/"
COPYRIGHT="2010-2024 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/solid-${portVersion}.tar.xz"
CHECKSUM_SHA256="a7a1c6f6a0ef27b876e3753c67ea17ec5cc1d66cfd3e2c0fbba83e2ce4773d7b"
PATCHES="solid-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
solid$secondaryArchSuffix = $portVersion
cmd:solid_hardware5$secondaryArchSuffix = $portVersion
lib:libKF5Solid$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
"
PROVIDES_devel="
solid${secondaryArchSuffix}_devel = $portVersion
devel:libKF5Solid$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
solid$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libQt5Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:bison
cmd:cmake
cmd:flex
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
"
PATCH()
{
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
}
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5Solid
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}