# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-frameworks pkgname=kdelibs4support pkgver=5.108.0 pkgrel=2 pkgdesc="Porting aid from KDELibs4" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later AND MIT AND LGPL-2.1-only AND LGPL-2.0-only AND (LGPL-2.1-only OR LGPL-3.0-only) AND (LGPL-2.0-only OR LGPL-3.0-only)" depends_dev=" kcompletion-dev kconfig-dev kconfigwidgets-dev kcrash-dev kdbusaddons-dev kded-dev kdesignerplugin kdesignerplugin-dev kdoctools-dev kemoticons-dev kglobalaccel-dev kguiaddons-dev ki18n-dev kiconthemes-dev kinit-dev kio-dev kitemmodels-dev knotifications-dev kparts-dev kservice-dev ktextwidgets-dev kunitconversion-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev perl-uri qt5-qtbase-dev qt5-qttools-dev " makedepends="$depends_dev extra-cmake-modules kded samurai " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/frameworks/kdelibs4support.git" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/kdelibs4support-$pkgver.tar.xz 0001-fix-test-build.patch " subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" options="suid !check" # Fails due to requiring running dbus _commit="" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/frameworks/kdelibs4support.git . git archive --format tar --prefix=$pkgname/ $_commit > ../$pkgname-$_commit.tar xz -vv -T0 -9 -e ../$pkgname-$_commit.tar } build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { xvfb-run ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" acec9c9b3da861ec998d02b331e9a0c5d6c1947c9659abfe48051aebd9addad3691e4105170e4cd0565ac35b0915ec0da292da60bde84fadab252629d146113c kdelibs4support-5.108.0.tar.xz a6359589e4d4fe71394dd9ccfd1910ee7fb20133b0032d24d4d8862e1900f61e1ac8ea059e734cde8ca5696abc970ebde54ba8fd92156c3de2ebdecbdbee7d8e 0001-fix-test-build.patch "