From 820daaf0c520d0151839c38a3f31c8afdb38b224 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 3 Aug 2018 10:43:21 +0000 Subject: user/kdeplasma-addons: new package --- user/kdeplasma-addons/APKBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 user/kdeplasma-addons/APKBUILD (limited to 'user') 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2