From 9b18e344dd6963f4044e829ec1e60ba1fac5f227 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Fri, 2 Mar 2018 22:07:18 +0100 Subject: [PATCH] Add NetworkManager and PulseAudio applets to Plasma (#1040) * Add NetworkManager and PulseAudio applets to Plasma * This crashes plasma mobile on armhf (where it is not usable due to performance problems anyway), except on mainlined kernels with hardware accelerated graphics. This is mentioned in the pkgdesc of postmarketos-ui-plasma-mobile now. --- kde/modemmanager-qt/APKBUILD | 35 +++++++++++++++++++ kde/networkmanager-qt/APKBUILD | 35 +++++++++++++++++++ kde/plasma-nm/APKBUILD | 38 +++++++++++++++++++++ kde/plasma-pa/APKBUILD | 35 +++++++++++++++++++ kde/plasma-phone-components/APKBUILD | 11 +++--- kde/qca-qt5/APKBUILD | 37 ++++++++++++++++++++ main/postmarketos-ui-plasma-mobile/APKBUILD | 4 +-- 7 files changed, 188 insertions(+), 7 deletions(-) create mode 100644 kde/modemmanager-qt/APKBUILD create mode 100644 kde/networkmanager-qt/APKBUILD create mode 100644 kde/plasma-nm/APKBUILD create mode 100644 kde/plasma-pa/APKBUILD create mode 100644 kde/qca-qt5/APKBUILD diff --git a/kde/modemmanager-qt/APKBUILD b/kde/modemmanager-qt/APKBUILD new file mode 100644 index 000000000..559a858e3 --- /dev/null +++ b/kde/modemmanager-qt/APKBUILD @@ -0,0 +1,35 @@ +pkgname=modemmanager-qt +pkgver=5.43.0 +pkgrel=0 +pkgdesc='Qt wrapper for ModemManager DBus API' +arch="all" +url='https://community.kde.org/Frameworks' +license="GPL-2.0" +depends="" +depends_dev="modemmanager-dev qt5-qtbase-dev" +makedepends="$depends_dev extra-cmake-modules doxygen graphviz-dev qt5-qttools-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" + +build() { + cd "$builddir" + cmake "$srcdir"/${pkgname}-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF \ + -DBUILD_QCH=ON + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + + +package() { + cd "$builddir" + make DESTDIR="${pkgdir}" install +} +sha512sums="c51e3368520ebbcbd1f5eaf40b4f8ac141eba135a4f5259538ffa5cc790c778d4c415daadeaeab8fff122bf9a04e845ba68acf80110777a63d8529d0e83eff8b modemmanager-qt-5.43.0.tar.xz" diff --git a/kde/networkmanager-qt/APKBUILD b/kde/networkmanager-qt/APKBUILD new file mode 100644 index 000000000..6d67a0350 --- /dev/null +++ b/kde/networkmanager-qt/APKBUILD @@ -0,0 +1,35 @@ +pkgname=networkmanager-qt +pkgver=5.43.0 +pkgrel=0 +pkgdesc='Qt wrapper for NetworkManager API' +arch="all" +url='https://community.kde.org/Frameworks' +license="LGPL-2.1" +depends="networkmanager" +depends_dev="networkmanager-dev" +makedepends="$depends_dev extra-cmake-modules doxygen qt5-qttools-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" + +build() { + cd "$builddir" + cmake "$srcdir"/${pkgname}-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF \ + -DBUILD_QCH=ON + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + + +package() { + cd "$builddir" + make DESTDIR="${pkgdir}" install +} +sha512sums="29c4102f3de6eabb18e9afc15f96032153a073bc189a7422b39d405549cc5b206a1519dda15341669b63bb487c60f377cb66a215cbd3345d40def485d0205de4 networkmanager-qt-5.43.0.tar.xz" diff --git a/kde/plasma-nm/APKBUILD b/kde/plasma-nm/APKBUILD new file mode 100644 index 000000000..27a8e3924 --- /dev/null +++ b/kde/plasma-nm/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=plasma-nm +pkgver=5.12.2 +pkgrel=0 +pkgdesc='Plasma applet written in QML for managing network connections' +arch="all" +url='https://www.kde.org/workspaces/plasmadesktop/' +license="GPL-2.0" +depends="networkmanager" +makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev + qt5-qttools-dev ki18n-dev kwindowsystem-dev kservice-dev kcompletion-dev + kwidgetsaddons-dev kio-dev kcoreaddons-dev kwallet-dev kitemviews-dev + kxmlgui-dev kconfigwidgets-dev kiconthemes-dev solid-dev kdbusaddons-dev + knotifications-dev plasma-workspace-dev kdeclarative-dev kinit-dev kdelibs4support-dev + networkmanager-qt-dev modemmanager-qt-dev qca-qt5-dev" +source="https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz" +subpackages="$pkgname-lang" + +build() { + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_LIBDIR=lib \ + -DKDE_INSTALL_LIBEXECDIR=lib + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} +sha512sums="080a9d11bc3a8665518a99f560d93d36e3ff80a0231d1e501bc1f450b01b784818b2935cc0542c20aed175938b0f9f233117e5d5aa98634c81411ccaf2cbb0df plasma-nm-5.12.2.tar.xz" diff --git a/kde/plasma-pa/APKBUILD b/kde/plasma-pa/APKBUILD new file mode 100644 index 000000000..1b11bf0b1 --- /dev/null +++ b/kde/plasma-pa/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=plasma-pa +pkgver=5.12.2 +pkgrel=0 +pkgdesc='Plasma applet for audio volume management using PulseAudio' +arch="all" +url='https://www.kde.org/workspaces/plasmadesktop/' +license="GPL-2.0" +depends="pulseaudio" +makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev + kcoreaddons-dev kdeclarative-dev kdoctools-dev kglobalaccel-dev + ki18n-dev plasma-workspace-dev pulseaudio-dev libcanberra-dev gconf-dev" +source="https://download.kde.org/stable/plasma/${pkgver}/$pkgname-$pkgver.tar.xz" +subpackages="$pkgname-doc $pkgname-lang" + +build() { + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_LIBDIR=lib \ + -DKDE_INSTALL_LIBEXECDIR=lib + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} +sha512sums="915a2108d3d96463c1571b8d0e919fc0863295d8fd0e5993190692f54e91ffde8472a0ee2c23b54c92d174dae2b8fb587b1b3bd15a90f2d92ead0898473992f5 plasma-pa-5.12.2.tar.xz" diff --git a/kde/plasma-phone-components/APKBUILD b/kde/plasma-phone-components/APKBUILD index 261b2a6ff..cb72dab39 100644 --- a/kde/plasma-phone-components/APKBUILD +++ b/kde/plasma-phone-components/APKBUILD @@ -1,12 +1,13 @@ pkgname=plasma-phone-components -pkgver=0_git20180123 -pkgrel=1 -_commit=3b265922fdf8817dab9115fd128ddf731126e2c5 +pkgver=0_git20180221 +pkgrel=0 +_commit="9222d501fa6b86b93382e0dd1a7c965668960cee" pkgdesc="Modules providing phone functionality for Plasma" arch="all" url="https://community.kde.org/Plasma/Mobile" license="GPL3" -depends="desktop-file-utils qt5-qtgraphicaleffects kactivities qt5-qtquickcontrols2 qt5-qtquickcontrols" +depends="desktop-file-utils qt5-qtgraphicaleffects kactivities qt5-qtquickcontrols2 qt5-qtquickcontrols + plasma-pa plasma-nm upower" makedepends="extra-cmake-modules kpeople-dev qt5-qtdeclarative-dev kactivities-dev plasma-framework-dev kservice-dev kdeclarative-dev ki18n-dev kio-dev kcoreaddons-dev kconfig-dev kbookmarks-dev kwidgetsaddons-dev kcompletion-dev kitemviews-dev @@ -39,4 +40,4 @@ package() { make DESTDIR="$pkgdir/" install } -sha512sums="8fd57df0e5e6fd0653891c94c2121d0fef03f1ec7ae2e1f4bc6bd66e2246a88beeba6d349e1a63cae4d00cd8f784c990af383fc120a6c5703ea172eab916ba91 plasma-phone-components-0_git20180123.tar.gz" +sha512sums="dc9752bc05f0822671be254d419a467fde64e0382748700f2440a8a1230dfa2cfcca9213011dd25fca4d08e4a87b1631538bd2db22fe95da6a0f28004075fdb2 plasma-phone-components-0_git20180221.tar.gz" diff --git a/kde/qca-qt5/APKBUILD b/kde/qca-qt5/APKBUILD new file mode 100644 index 000000000..2b9a92331 --- /dev/null +++ b/kde/qca-qt5/APKBUILD @@ -0,0 +1,37 @@ +pkgbase=qca +pkgname=qca-qt5 +pkgver=2.1.3 +pkgrel=0 +pkgdesc='Qt Cryptographic Architecture' +arch="all" +url='http://delta.affinix.com/qca/' +license="LGPL-2.1" +depends="" +depends_dev="qt5-qtbase-dev" +makedepends="$depends_dev cmake doxygen graphviz-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://download.kde.org/stable/$pkgbase/$pkgver/src/$pkgbase-$pkgver.tar.xz" +builddir="$srcdir/$pkgbase-$pkgver" + +build() { + cd "$builddir" + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF \ + -DBUILD_QCH=ON + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + + +package() { + cd "$builddir" + make DESTDIR="${pkgdir}" install +} +sha512sums="0aec277e0695da2e45298f0a9006213829fe4c449a79969e472947db54f45000ba6e22361b782465bdc03f269b7301d318c843f5a83db459a118e58a03f3116a qca-2.1.3.tar.xz" diff --git a/main/postmarketos-ui-plasma-mobile/APKBUILD b/main/postmarketos-ui-plasma-mobile/APKBUILD index e77c87cab..d98f03e8c 100644 --- a/main/postmarketos-ui-plasma-mobile/APKBUILD +++ b/main/postmarketos-ui-plasma-mobile/APKBUILD @@ -1,7 +1,7 @@ pkgname=postmarketos-ui-plasma-mobile pkgver=1 -pkgrel=9 -pkgdesc="(Wayland) Mobile variant of KDE Plasma, optimized for touchscreen" +pkgrel=10 +pkgdesc="(Wayland) Mobile variant of KDE Plasma, optimized for touchscreen (aarch64, x86_64 or hardware acceleration required!)" url="https://wiki.postmarketos.org/wiki/Plasma_Mobile" arch="noarch" license="GPL3+"