diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-27 07:31:48 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-27 07:31:48 +0000 |
commit | 6e857f9ade1537281d5d74a4e249f0dc9ae1a35e (patch) | |
tree | bf686e8286badbb0bad5b99744ab34a9e5c7187d | |
parent | fe3a1c19e736760ad7cba467d0dc335a1c18453e (diff) | |
download | packages-6e857f9ade1537281d5d74a4e249f0dc9ae1a35e.tar.gz packages-6e857f9ade1537281d5d74a4e249f0dc9ae1a35e.tar.bz2 packages-6e857f9ade1537281d5d74a4e249f0dc9ae1a35e.tar.xz packages-6e857f9ade1537281d5d74a4e249f0dc9ae1a35e.zip |
user/plasma-nm: New package
-rw-r--r-- | user/modemmanager-qt/APKBUILD | 5 | ||||
-rw-r--r-- | user/networkmanager-qt/APKBUILD | 2 | ||||
-rw-r--r-- | user/plasma-nm/APKBUILD | 47 |
3 files changed, 50 insertions, 4 deletions
diff --git a/user/modemmanager-qt/APKBUILD b/user/modemmanager-qt/APKBUILD index 361ca1698..7d350b578 100644 --- a/user/modemmanager-qt/APKBUILD +++ b/user/modemmanager-qt/APKBUILD @@ -9,8 +9,9 @@ arch="all" options="!check" # Requires MM running. license="LGPL-2.1-only OR LGPL-3.0-only" depends="" -makedepends="cmake extra-cmake-modules modemmanager-dev qt5-qtbase-dev - doxygen qt5-qttools-dev" +depends_dev="modemmanager-dev" +makedepends="$depends_dev cmake doxygen extra-cmake-modules qt5-qtbase-dev + qt5-qttools-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://download.kde.org/stable/frameworks/5.67/modemmanager-qt-$pkgver.tar.xz" diff --git a/user/networkmanager-qt/APKBUILD b/user/networkmanager-qt/APKBUILD index bb96c29eb..734a3509c 100644 --- a/user/networkmanager-qt/APKBUILD +++ b/user/networkmanager-qt/APKBUILD @@ -12,8 +12,6 @@ depends="" makedepends="cmake extra-cmake-modules networkmanager-dev qt5-qtbase-dev doxygen qt5-qttools-dev" subpackages="$pkgname-dev $pkgname-doc" -# We don't want to pull NM into plasma-meta, so we do this as a workaround. -install_if="plasma-desktop networkmanager" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/networkmanager-qt-$pkgver.tar.xz" build() { diff --git a/user/plasma-nm/APKBUILD b/user/plasma-nm/APKBUILD new file mode 100644 index 000000000..0806fce0f --- /dev/null +++ b/user/plasma-nm/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=plasma-nm +pkgver=5.18.1 +pkgrel=0 +pkgdesc="NetworkManager integration for KDE Plasma desktop" +url="https://www.kde.org/" +arch="all" +license="(LGPL-2.1-only OR LGPL-3.0-only) AND GPL-2.0-only AND GPL-2.0+ AND LGPL-2.0+" +depends="prison-quick" +makedepends="cmake extra-cmake-modules kauth-dev kcodecs-dev kcompletion-dev + kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev kdeclarative-dev + ki18n-dev kiconthemes-dev kio-dev kitemviews-dev kjobwidgets-dev + knotifications-dev kpackage-dev kservice-dev kwallet-dev + kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev modemmanager-qt-dev + networkmanager-dev networkmanager-qt-dev plasma-framework-dev + prison-dev qca-dev qt5-qtbase-dev qt5-qtdeclarative-dev solid-dev" +subpackages="$pkgname-lang" +# We don't want to pull NM into plasma-meta, so we do this as a workaround. +install_if="plasma-desktop networkmanager" +source="https://download.kde.org/stable/plasma/$pkgver/plasma-nm-$pkgver.tar.xz" + +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() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="36f45ecc93e502b512346093cb8f71047e2200fe3cf9d7f198d41b5dda03725c0080981a0c09d76929b394f46635376cf1605455deeadc6d4eb665570f0ba453 plasma-nm-5.18.1.tar.xz" |