28c64079db
[ci:skip-vercheck]: should not affect the resulting binary package [ci:ignore-count]
42 lines
1.5 KiB
Text
42 lines
1.5 KiB
Text
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=plasma-phonebook
|
|
pkgver=0_git20200618
|
|
pkgrel=0
|
|
_commit="c67aecb8a373d735b92839f809711ca6c111ac5d"
|
|
pkgdesc="Contacts application which allows adding, modifying and removing contacts"
|
|
arch="all !armhf"
|
|
url="https://invent.kde.org/kde/plasma-phonebook"
|
|
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"
|
|
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 --build build --target install
|
|
}
|
|
sha512sums="a1b06880b6030bcd159cbd9f6b3dcdde0abf43c86ae02b9009e3c21b0e13d96772d7294ed9285319136a5128e8daf7a29a7f56606838dae211d0b9f57f6dba3a plasma-phonebook-c67aecb8a373d735b92839f809711ca6c111ac5d.tar.gz"
|