pmaports/temp/plasma-workspace/APKBUILD

43 lines
2 KiB
Text

# Forked from Alpine to build Plasma 5.17 pre-release
pkgname=plasma-workspace
pkgver=5.16.90.1
pkgrel=0
pkgdesc="KDE Plasma Workspace"
arch="all !ppc64le !s390x" # Limited by libksysguard -> qt5-qtwebengine
url="https://www.kde.org/workspaces/plasmadesktop/"
license="(GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1-or-later AND GPL-2.0-or-later AND MIT AND LGPL-2.1-only AND LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only) AND LGPL-2.0-only"
depends="tzdata qt5-qtquickcontrols kirigami2 kinit qt5-qttools kwin kactivitymanagerd milou plasma-integration qtchooser kded"
depends_dev="plasma-framework-dev krunner-dev kjsembed-dev knotifyconfig-dev kdesu-dev knewstuff-dev kwallet-dev kidletime-dev kdeclarative-dev ki18n-dev kcmutils-dev ktextwidgets-dev kdelibs4support-dev kcrash-dev kglobalaccel-dev kdbusaddons-dev kwayland-dev kcoreaddons-dev kded-dev libksysguard-dev kpackage-dev kscreenlocker-dev phonon-dev zlib-dev kitemmodels-dev networkmanager-qt-dev baloo-dev ktexteditor-dev kwin-dev kholidays-dev prison-dev gpsd-dev iso-codes-dev kpeople-dev kactivities-stats-dev libkscreen-dev appstream-qt"
makedepends="$depends_dev extra-cmake-modules kdoctools-dev libxtst-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/unstable/plasma/${pkgver%.1}/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc $pkgname-lang"
options="!check" # broken with cross-compiling
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
}
check() {
cd "$builddir"/build
# nightcolortest requires running dbus
# testdesktop is broken
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(nightcolortest|testdesktop)"
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
}
sha512sums="665effbf4b2cfb840de8adfcf1b951f52feb91fc776889b48ac727ac2d7444a502345cdda5374a8103e06e17d0e5ff2b6d5a4f2e9ea556f7b8c1032136e46b18 plasma-workspace-5.16.90.1.tar.xz"