aports/community/kitemmodels5/APKBUILD
Bart Ribbers 44ce39a091 */*: remove unnecessary --output-on-failure
We set OUTPUT_ON_FAILURE by default nowadays so this argument is
unnecessary
2025-03-19 15:41:30 +00:00

51 lines
1.5 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks-old
maintainer="team/kde <bribbers@disroot.org>"
pkgname=kitemmodels5
pkgver=5.116.0
pkgrel=0
pkgdesc="Models for Qt Model/View system"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://community.kde.org/Frameworks"
license="LGPL-2.0-only AND LGPL-2.0-or-later"
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev
doxygen
extra-cmake-modules
graphviz
qt5-qtdeclarative-dev
qt5-qttools-dev
samurai
"
checkdepends="xvfb-run"
_repo_url="https://invent.kde.org/frameworks/kitemmodels.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kitemmodels-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/kitemmodels-$pkgver"
replaces="kitemmodels<=5.110.0-r0"
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() {
# kdescendantsproxymodel_smoketest and kdescendantsproxymodeltest are broken
# # kselectionproxymodeltest
xvfb-run ctest --test-dir build -E "(kselectionproxymodel|kdescendantsproxymodel(_smoke|))test"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
ef3ee4ba45fdf8fac395f3d678421fccb7bfdafec2dacaca203dacf90f65548e31d2d0eb5165c4cb2ce5cf71e4bca289c1af9c9e8dead710f9a19d7831db3bfb kitemmodels-5.116.0.tar.xz
"