summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/kdeplasma-addons/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/user/kdeplasma-addons/APKBUILD b/user/kdeplasma-addons/APKBUILD
new file mode 100644
index 000000000..ab283e343
--- /dev/null
+++ b/user/kdeplasma-addons/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kdeplasma-addons
+pkgver=5.12.6
+pkgrel=0
+pkgdesc="Extra applets and toys for KDE Plasma"
+url="https://www.kde.org/"
+arch="all"
+license="GPL-2.0+ AND LGPL-2.1-only"
+depends="qt5-qtquickcontrols qt5-qtquickcontrols2"
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev
+ qt5-qtx11extras-dev kactivities-dev kconfig-dev kconfigwidgets-dev
+ kcmutils-dev kcoreaddons-dev kdoctools-dev ki18n-dev knewstuff-dev
+ kross-dev krunner-dev kservice-dev kunitconversion-dev
+ kdelibs4support-dev plasma-framework-dev plasma-workspace-dev"
+subpackages="$pkgname-lang"
+source="https://download.kde.org/stable/plasma/$pkgver/kdeplasma-addons-$pkgver.tar.xz"
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ mkdir -p build
+}
+
+build() {
+ cd "$builddir"/build
+ 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"/build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="5bf0834d204b4ec1dfeb80ca52d4babd067768e77f5937280573608b59099f535065c2804bf2359651f9d8d78e310fec598de55bbcb0089a54e3c8d52c00daf9 kdeplasma-addons-5.12.6.tar.xz"