2019-10-11 15:27:17 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=plasma-phonebook
|
2020-06-18 08:57:31 +00:00
|
|
|
pkgver=0_git20200618
|
2019-10-11 15:27:17 +00:00
|
|
|
pkgrel=0
|
2020-06-18 08:57:31 +00:00
|
|
|
_commit="c67aecb8a373d735b92839f809711ca6c111ac5d"
|
2019-10-11 15:27:17 +00:00
|
|
|
pkgdesc="Contacts application which allows adding, modifying and removing contacts"
|
2020-07-30 16:02:20 +00:00
|
|
|
arch="all !armhf"
|
2019-10-11 15:27:17 +00:00
|
|
|
url="https://invent.kde.org/kde/plasma-phonebook"
|
2020-06-18 08:57:31 +00:00
|
|
|
license="LicenseRef-KDE-Accepted-GPL"
|
|
|
|
depends="kirigami2 qt5-qtquickcontrols qt5-qtbase-sqlite"
|
|
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev kcoreaddons-dev kirigami2-dev kpeople-dev kcontacts-dev kpeoplevcard-dev"
|
|
|
|
source="https://invent.kde.org/kde/plasma-phonebook/-/archive/$_commit/plasma-phonebook-$_commit.tar.gz"
|
2019-10-11 15:27:17 +00:00
|
|
|
options="!check" # No tests
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
|
2020-09-11 13:40:04 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2019-10-11 15:27:17 +00:00
|
|
|
build() {
|
2020-03-13 10:16:17 +00:00
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2019-10-11 15:27:17 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
2020-06-18 08:57:31 +00:00
|
|
|
cmake --build build
|
2019-10-11 15:27:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-03-18 16:50:35 +00:00
|
|
|
cd build
|
2019-10-11 15:27:17 +00:00
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-06-18 08:57:31 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --build build --target install
|
2019-10-11 15:27:17 +00:00
|
|
|
}
|
2020-06-18 08:57:31 +00:00
|
|
|
sha512sums="a1b06880b6030bcd159cbd9f6b3dcdde0abf43c86ae02b9009e3c21b0e13d96772d7294ed9285319136a5128e8daf7a29a7f56606838dae211d0b9f57f6dba3a plasma-phonebook-c67aecb8a373d735b92839f809711ca6c111ac5d.tar.gz"
|