blob: bda53aa6626f0e2addf8ed315724698a33425953 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=plasma-framework
pkgver=5.39.0
pkgrel=1
pkgdesc="Frameworks for the KDE Plasma 5 desktop environment"
url="https://www.kde.org/"
arch="all"
license="GPL-2.0 LGPL-2.1"
options="!check" # Requires accelerated X11 *and* system DBus running.
depends="qt5-qtquickcontrols"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev kactivities-dev
karchive-dev kconfigwidgets-dev kdbusaddons-dev kdeclarative-dev kio-dev
kconfig-dev kglobalaccel-dev kguiaddons-dev kiconthemes-dev ki18n-dev
kservice-dev kwindowsystem-dev knotifications-dev kpackage-dev
kwayland-dev"
makedepends="$depends_dev cmake extra-cmake-modules python3 gettext-dev doxygen
kdoctools-dev libx11-dev libxcb-dev graphviz qt5-qttools-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://download.kde.org/stable/frameworks/${pkgver%.*}/plasma-framework-$pkgver.tar.xz"
builddir="$srcdir/plasma-framework-$pkgver"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DBUILD_QCH:BOOL=ON \
${CMAKE_CROSSOPTS}
make
}
check() {
cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="f24183f54016a6c33f1204cdc23a5737a2b1358b09e5ca260acfe036fc8b31bf4999ebcbd8c3f3207546649b9bce5b82c9be6d7f884fa93646352f11f07e120a plasma-framework-5.39.0.tar.xz"
|