# Maintainer: Bart Ribbers pkgname=plasma-dialer pkgver=0.1_git20201109 pkgrel=1 _commit="45daa12e959981f25d594480c27f6cc5bdf98820" pkgdesc="A dialer for Plasma Mobile" arch="all !armhf" # Blocked qt5-qtdeclarative url="https://invent.kde.org/plasma-mobile/plasma-dialer" license="GPL-2.0-or-later" depends=" kirigami2 oxygen " makedepends=" extra-cmake-modules kcontacts-dev kcoreaddons-dev kdbusaddons-dev ki18n-dev knotifications-dev kpeople-dev libphonenumber-dev pulseaudio-dev qt5-qtbase-dev qt5-qtdeclarative-dev telepathy-qt-dev " source="https://invent.kde.org/plasma-mobile/plasma-dialer/-/archive/$_commit/plasma-dialer-$_commit.tar.gz" options="!check" # No tests builddir="$srcdir/$pkgname-$_commit" prepare() { default_prepare # qmlplugindump fails for armv7+qemu (pmb#1970). This is purely for # packager knowledge and doesn't affect runtime, so we can disable it. if [ "$CARCH" = "armv7" ]; then sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" CMakeLists.txt fi } build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums="4ebb7959e794bd6b5b245d5d177e9db162c549e7385dac628c36166464419a72aa45422c7968150a0d1582cef39d4afdb79c97bac4249b02aaaef69d996994fe plasma-dialer-45daa12e959981f25d594480c27f6cc5bdf98820.tar.gz"