51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=kpeoplesink
|
|
pkgver=0_git20210224
|
|
pkgrel=0
|
|
_commit="6f382e619e22f9f34b0760fc19a23eb1863bf45b"
|
|
pkgdesc="Expose Sink contacts to KPeople"
|
|
url="https://invent.kde.org/pim/kpeoplesink"
|
|
# armhf blocked by qt5-qtdeclarative
|
|
arch="all !armhf"
|
|
license="LGPL-2.1-or-later"
|
|
makedepends="
|
|
extra-cmake-modules
|
|
kaccounts-integration-dev
|
|
kcontacts-dev
|
|
kcoreaddons-dev
|
|
kpeople-dev
|
|
qt5-qtbase-dev
|
|
sink-dev
|
|
"
|
|
source="https://invent.kde.org/pim/kpeoplesink/-/archive/$_commit/kpeoplesink-$_commit.tar.gz"
|
|
options="!check" # Broken 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="04181dd34cb34b127a292b9294652adb82a3857b5a2de25ffaa27b13f971e6faa0abe1986e458a7a90298339ebbcdc10b1626d4ff2ff891baebf1ad1b45a1fe4 kpeoplesink-6f382e619e22f9f34b0760fc19a23eb1863bf45b.tar.gz"
|