# Forked from Alpine to build with commits not in any release yet but required for Spacebar to launch # Will be made obsolete once KDE Applications 20.04 is in the repositories pkgname=ktp-common-internals pkgver=9999_git20200217 pkgrel=0 _commit="abe3dbf9f890e6d905e21a845d386268e6cbb717" pkgdesc="Library for KTp" url="https://github.com/kde/ktp-common-internals" arch="all !armhf" # armhf blocked by extra-cmake-modules license="LGPL-2.1-only AND GPL-2.0-only" depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev kcoreaddons-dev knotifications-dev kio-dev kwidgetsaddons-dev kcmutils-dev knotifyconfig-dev ktexteditor-dev kwallet-dev kconfig-dev kwindowsystem-dev kemoticons-dev kiconthemes-dev kpeople-dev telepathy-qt-dev" makedepends="$depends_dev extra-cmake-modules doxygen" #source="https://download.kde.org/stable/release-service/$pkgver/src/ktp-common-internals-$pkgver.tar.xz" source="$pkgname-$_commit.tar.gz::https://github.com/KDE/ktp-common-internals/archive/$_commit.tar.gz 0001-KTp-Make-SpaceBar-the-preferred-text-channel-handler.patch" subpackages="$pkgname-dev" # $pkgname-lang is only available in release packages options="!check" # No tests builddir="$srcdir/$pkgname-$_commit" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="9a282d10aaf68c591ba611099101379f337d963f91ead55b1c091a05af9c69562a19cde288fc3b909ee1301b41547523636229d4f19b05cd0bc29c5a07abcea8 ktp-common-internals-abe3dbf9f890e6d905e21a845d386268e6cbb717.tar.gz 08050d3d40590881f961ae1006ba2430b9f07bedf22cf925527b66d16d93e31c43eb44adbeff8a5bdb747c1993c1e6d6fe8a1f507e03d4c5ec3b15b77559dc1b 0001-KTp-Make-SpaceBar-the-preferred-text-channel-handler.patch"