2024-07-13 08:20:00 +02:00

51 lines
1.3 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks
pkgname=solid
pkgver=6.4.0
pkgrel=0
pkgdesc="Hardware integration and detection"
# armhf blocked by qt6-qtdeclarative
arch="all !armhf"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only OR LGPL-3.0-only"
depends_dev="qt6-qtdeclarative-dev"
makedepends="$depends_dev
bison
doxygen
eudev-dev
extra-cmake-modules
flex-dev
qt6-qttools-dev
samurai
udisks2-dev
upower-dev
"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/frameworks/solid.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/solid-$pkgver.tar.xz"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_QCH=ON
cmake --build build
}
check() {
# solidmttest is broken
ctest --test-dir build --output-on-failure -E "solidmttest"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
a78f8d77a186f8b3b3e7788ee399c52d77a724c3221ed0503a930161f7cc378a70d7fe3aa95810f8c03c333652d7a31decea5d93c0cceaac778dbcd17da9b676 solid-6.4.0.tar.xz
"