diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/plasma-framework/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/user/plasma-framework/APKBUILD b/user/plasma-framework/APKBUILD new file mode 100644 index 000000000..ae7b43fff --- /dev/null +++ b/user/plasma-framework/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=plasma-framework +pkgver=5.38.0 +pkgrel=0 +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="" +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" +makedepends="$depends_dev cmake extra-cmake-modules python3 gettext-dev + kdoctools-dev libx11-dev libxcb-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/frameworks/5.38/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" \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="5daec7431e70b6a94001608992b8930445d3b936830980fb9a6bbe501cb0f660cb9d192089c2401d1699c92448d4d9043ec12a42f0dd517fcd505127cb58e37b plasma-framework-5.38.0.tar.xz" |