pmaports/kde/plasma-phonebook/APKBUILD

43 lines
1.5 KiB
Text
Raw Normal View History

2019-10-11 15:27:17 +00:00
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-phonebook
pkgver=0_git20200618
2019-10-11 15:27:17 +00:00
pkgrel=0
_commit="c67aecb8a373d735b92839f809711ca6c111ac5d"
2019-10-11 15:27:17 +00:00
pkgdesc="Contacts application which allows adding, modifying and removing contacts"
arch="all !armhf"
2019-10-11 15:27:17 +00:00
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"
2019-10-11 15:27:17 +00:00
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
}
2019-10-11 15:27:17 +00:00
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
2019-10-11 15:27:17 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
2019-10-11 15:27:17 +00:00
}
check() {
cd build
2019-10-11 15:27:17 +00:00
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
2019-10-11 15:27:17 +00:00
}
sha512sums="a1b06880b6030bcd159cbd9f6b3dcdde0abf43c86ae02b9009e3c21b0e13d96772d7294ed9285319136a5128e8daf7a29a7f56606838dae211d0b9f57f6dba3a plasma-phonebook-c67aecb8a373d735b92839f809711ca6c111ac5d.tar.gz"