diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-03 10:43:21 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-03 10:43:21 +0000 |
commit | 820daaf0c520d0151839c38a3f31c8afdb38b224 (patch) | |
tree | 59656f2493b76400125d5d3bef240c353ef874db /user/kdeplasma-addons | |
parent | 0446699881d4adc55b26e303abaad44168484826 (diff) | |
download | packages-820daaf0c520d0151839c38a3f31c8afdb38b224.tar.gz packages-820daaf0c520d0151839c38a3f31c8afdb38b224.tar.bz2 packages-820daaf0c520d0151839c38a3f31c8afdb38b224.tar.xz packages-820daaf0c520d0151839c38a3f31c8afdb38b224.zip |
user/kdeplasma-addons: new package
Diffstat (limited to 'user/kdeplasma-addons')
-rw-r--r-- | user/kdeplasma-addons/APKBUILD | 52 |
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" |